modules
modules copied to clipboard
Node.js Modules Team
This was brought up in https://github.com/nodejs/modules/issues/451#issuecomment-575282242 for resolver stability, that having tests available for tools and userland resolvers would be a great help in ensuring that they are compliant with...
Given that we have self referential packages, and `"imports"` in `package.json`. In addition since `//` is reserved I think we should remove the reservation since it will by the default...
I really liked dynamic modules; it's too bad they didn't get anywhere with TC39. I have an idea that might accomplish something similar without requiring TC39 approval. Today, in Node...
It seems like a good idea to capture somewhere the feedback we receive on extension resolution.
This is a counter-proposal to #273. A bunch of us have brought this up during informal dual-mode discussions before, but the very concept of "dual mode" packages which execute different...
Maybe the information I'm looking for is already somewhere but I'm not able to find it. I'm happy if I get redirected. I'm also quite new in the ECMAModules area...
Based on [my own experiments](https://github.com/apparebit/siteforge/tree/master/packages/loader) with loader hooks as well as the discussion in nodejs/node#31229 and then #525, I believe that loader hooks are missing the ability to delete modules...
Right now loaders cannot directly share data from their implementation, the global preload code, or the modules that they generate. We need to add a communications channel such as a...
Right now we always generate modules via a static/serializable blob. With the removal of `dynamicInstantiate` we need to figure out what we want to do with [`v8::Module::CreateSyntheticModule`](https://github.com/v8/v8/blob/246344ad2c69fc3b817696f685205b1cbd8baf51/include/v8.h#L1565). In theory this...
```js // foo.mjs export const foo = 'bar'; // index.js require('./foo.mjs'); ``` ``` $ node index.js internal/modules/cjs/loader.js:1047 throw new ERR_REQUIRE_ESM(filename); ^ Error [ERR_REQUIRE_ESM]: Must use import to load ES Module:...