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

Support .mjs and .cjs file extension #20

Closed
marco-prontera opened this issue Apr 16, 2022 · 0 comments · Fixed by #19
Closed

Support .mjs and .cjs file extension #20

marco-prontera opened this issue Apr 16, 2022 · 0 comments · Fixed by #19
Labels
enhancement New feature or request

Comments

@marco-prontera
Copy link
Owner

Author of PR: #19
I am publishing my ESM bundle with a .mjs file extension. My understanding of vitejs/vite#6827 is that this will become the default in Library Mode to ensure compatibility with Node.js.

Currently, vite-plugin-css-injected-by-js only injects CSS into files whose file name contains .js.

@marco-prontera marco-prontera added the enhancement New feature or request label Apr 16, 2022
@marco-prontera marco-prontera linked a pull request Apr 16, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant