modules
modules copied to clipboard
Node.js Modules Team
How do I invalidate the cache of `import`? I have a function that installs missing modules when an import fails, but the `import` statement seems to preserve the failure while...
Deno just added this. Should we? https://github.com/denoland/deno/pull/1835
When using esm there seems to be no way to resolve paths to a packages 🤔 In a commonjs project, I currently have this "gem" 😅 ```js /** * Resolves...
I was hoping to start the conversation around getting [Import Map](https://github.com/WICG/import-maps) support into core. I figured starting here with a proposal was better than starting right off with a PR....
This issue is meant to track concerns raised in the past about `require(esm)`. I'm hoping to preempt having these discussions in January after we (or rather @weswigham) already invested more...
I am trying to load a local file for side effects, however it seems that when using an import statement over an import function, node is unable to locate the...
```js // syntax-error.mjs console.log([ 'str1' 'str2' ]); ``` Perform a dynamic import with `node -e "import('./syntax-error.mjs').catch(console.error)"`, the output does not help identify the error and could be seen by users...
I can see that vm modules is [marked w/ stability of 1][docsLink]. I'm trying to find out what it's trajectory is, will it be moving to 2 in the future?...
package.json: ```js { "scripts": { "test": "tsc" }, "dependencies": { "typescript": "^3.7.5" } } ``` .npmrc: ``` node-options="--loader=./loader.js" ``` loader.js: ``` // Custom loader. May be empty for test ```...
Loader Hooks
Hooking into the dependency loading steps in Nodejs should be easy, efficient, and reliable across CJS+ESM. Loader hooks would allow for developers to make systematic changes to dependency loading without...