-
Notifications
You must be signed in to change notification settings - Fork 62
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
native esm loader with jiti.import
#32
Comments
oh yeah, waiting this so much, cause |
@danielroe I've moved vite 3 related issue to #66. Supporting native esm loader ( |
Hi, Thanks for your effort! This project is very useful! 🥳 Uhhh, How to disable CommonJS transforms? Any workarounds are there? |
Hi. Just a quick update, i still plan to do this. In the meantime, are they are incomaptbile libraries with cjs transforms? Please mention them there might be faster fixes for them. |
In contexts where file extension is explicit
.mjs
or closestpackage.json
hastype: module
we may use native ESM and for typescript, disable CommonJS transforms.Blocker is, jiti is supposed to be used in a cjs context (require replacement). We probably need to implement a new function like
jiti.import
that returns Promise (compatible to be dynamic import replacement)The text was updated successfully, but these errors were encountered: