Create a module not found error
NodeJS Require that let you handle module not found error without try/catch
- Note: we are using `@babel/runtime` as a dependency because if we don't we get errors such as Module not found: Error: Can't resolve `@babel/runtime/helpers/interopRequireDefault`
A drop-in replacement for fs, making various improvements.
walk paths fast and efficiently
CJS (Node.js) style modules resolver
EventEmitter3 focuses on performance while maintaining a Node.js AND browser compatible interface.
Enforces module path case sensitivity in Webpack
Load the local package.json from either src or dist folder
Lexes CommonJS modules, returning their named exports metadata
A dictionary of file extensions and associated module loaders.
A bcrypt library for NodeJS.
A mirror of Facebook's Warning
Node's event emitter for all engines.
- cjs是commonjs的缩写,支持使用require导入模块 - esm是es6模块的缩写,支持使用import导入模块 - iife是立即执行函数,支持使用script标签导入模块 - 打包后的文件名格式为:index.cjs、index.mjs、index.global.js,另外types必须加上,否则无法使用,会出现这个问题 “Module not found: Error: Default condition should be last one” ``` package.json {
A simple Node.js module to check if a TCP port is already bound.
A JavaScript parser built from the Hermes engine
Check if a path exists
An extendable Error class that actually works, with TypeScript definition files, supporting old and new style classes and compatibility even with the oldest browsers
The assert module from Node.js, for the browser.
Error comparison and information related utility for node and the browser
Translates between file formats and generates static code as well as TypeScript definitions.
Node.js Buffer API, for the browser
- Can be combined with the build plug-in to share basic dependencies according to policies to reduce the number of module downloads and improve the loading speed of modules. - Only consume part of the export of the remote module and will not fully downloa