Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keep dynamic import when target set to es5 #2290

Closed
hardfist opened this issue Jun 1, 2022 · 1 comment
Closed

keep dynamic import when target set to es5 #2290

hardfist opened this issue Jun 1, 2022 · 1 comment

Comments

@hardfist
Copy link
Contributor

hardfist commented Jun 1, 2022

Currently esbuild will transform dynamic import to require when target set to es5, which will cause problem when we want to further transpile the transpiled code to systemjs format(commonjs is not supported to systemjs).

@evanw
Copy link
Owner

evanw commented Jun 18, 2022

I'm adding the ability to configure syntax feature support at the individual feature level in the next release. So you will be able to do --supported:dynamic-import=true to do this. I'm closing this issue because I believe this should now be fixed.

@evanw evanw closed this as completed Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants