Replies: 1 comment 1 reply
-
You transformed esm to cjs, which means import() becomes Promise.resolve().then(() => require()). If you really need to transform it to cjs, set module.ignoreDynamic to true, it will preserve dynamic import expression. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
tsc+
"moduleResolution": "Node16"
work fine,but change to swc get error
Code
error
swc config
Beta Was this translation helpful? Give feedback.
All reactions