-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
(dynamic import) transform
should probably respect format: esm
#1146
Comments
Well dynamic import doesn't work in node 12, so this transformation is correct. Someone explicitly asked for this transformation to be added in #1084. Node 12 is no longer actively maintained and is now in maintenance mode. If you don't actually need to support node 12, the easiest solution here could just be to use Technically node shipped a back-ported version of node 12.x that does work with dynamic import, node 12.20+. So in theory this could be made to work by using |
It could be agreeable to pretend like all of Node 13.x didn't exist, though. For example, it included a different/incomplete It's been a mess, tbh. Fun stuff. |
👍 Sounds fair. |
When using with options
{ target: 'node12', format: 'esm' }
, dynamic import is transformed torequire
:this would break
rollup-plugin-esbuild
since rollup only recognizes es module by default.esbuild:
0.11.10
The text was updated successfully, but these errors were encountered: