-
Notifications
You must be signed in to change notification settings - Fork 165
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
[Feature]: Provode .mjs artifact #99
Comments
@10Derozan cc |
Quotes from 1.0 roadmap
Given Rsbuild is a quite new project, we have more choices on this topic based on Vite's valuable experience.
Also, there's a risk of loading duplicated modules from ESM and CJS from the same source module distributed in CJS and ESM. A thin ESM wrapper to support ESM would be a more secure method. |
It would be very nice if we could use the ESM wrapper to keep compatible with CJS users. Add some information for this:
|
What problem does this feature solve?
Provode .mjs artifact for ESM imports.
What does the proposed API look like?
Both CommonJS and ESModule should be supported.
The text was updated successfully, but these errors were encountered: