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 JavaScript file extensions #40

Merged
merged 2 commits into from
Jun 22, 2020
Merged

Add support for .mjs and .cjs JavaScript file extensions #40

merged 2 commits into from
Jun 22, 2020

Conversation

TomerAberbach
Copy link
Contributor

Many JavaScript packages support the .mjs and .cjs JavaScript file extensions.

For example, a popular JavaScript testing library, ava, allows an ava.config.cjs JavaScript file . It also supports other file extensions, but .cjs indicates it's a CommonJS module.

Babel also supports .mjs and .cjs.

Copy link
Contributor

@mco-gh mco-gh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@mco-gh mco-gh merged commit df58aca into google:master Jun 22, 2020
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.

2 participants