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

Add support for .mjs and .cjs in output file names #2215

Merged
merged 3 commits into from
Feb 24, 2021
Merged

Add support for .mjs and .cjs in output file names #2215

merged 3 commits into from
Feb 24, 2021

Conversation

cawa-93
Copy link
Contributor

@cawa-93 cawa-93 commented Feb 24, 2021

In some situations, the catfish may need to generate a source file with the .cjs or .mjs extensions in output file names.

At the moment this will lead to error:

Invalid loader: "cjs" (valid: js, jsx, ts, tsx, css, json, text, base64, dataurl, file, binary)

@yyx990803 yyx990803 merged commit a0d922e into vitejs:main Feb 24, 2021
@cawa-93 cawa-93 deleted the patch-3 branch February 24, 2021 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants