-
-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Labels
🐞 bugSomething isn't workingSomething isn't working
Description
Version
Rslib 0.0.11
Details
Dynamic import in CJS output is broken.
There are some conditions:
- Use dynamic import in the source code
- Output
cjsformat - package.json contains
type: 'module'
For example, the input code is:
export async function main() {
const { TsconfigPathsPlugin } = await import('tsconfig-paths-webpack-plugin');
console.log(TsconfigPathsPlugin);
}
main();Run the output code, and console.log(TsconfigPathsPlugin); get undefined.
Reproduce link
https://github.com/chenjiahan/rslib-repro-dynamic-import-cjs-interop
Reproduce Steps
- tsup:
- Modern.js Module:
- Rslib:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🐞 bugSomething isn't workingSomething isn't working


