nodejs / import-in-the-middle

Like `require-in-the-middle`, but for ESM import
https://www.npmjs.com/package/import-in-the-middle
Apache License 2.0
60 stars 22 forks source link

handle non-identifier exports #7

Open bmeck opened 2 years ago

bmeck commented 2 years ago

Due to WASM and https://github.com/bmeck/proposal-arbitrary-module-namespace-identifiers JS can export names that are not identifiers, this generally only affects WASM though

See potential fix by using index rather than name like in https://github.com/nodejs/node/blob/255b1db9320df7b2e17a248ba4ab659d3f25853d/test/fixtures/es-module-loaders/mock-loader.mjs#L232