-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Feature Use Case
Because Node.js supports both require() and import() in CommonJS files, it would be helpful to be able to retain import() calls instead of translating them into require(). Here's a very simple example of what I'm trying to do:
Feature Proposal
Add a preserveDynamicImports option that can be set to:
"all"- never rewriteimport()regardless of the value passed in"variable"- only preserveimport()if it's used with a variable, otherwise overwrite as usual"static"- only preserveimport()when passed a constant
Reactions are currently unavailable