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 .cjs outputs #511

Merged
merged 9 commits into from Feb 21, 2020
Merged

Add support for .cjs outputs #511

merged 9 commits into from Feb 21, 2020

Conversation

guybedford
Copy link
Contributor

This PR adds support for .cjs output files from ncc, when the input file is using the .cjs extension.

As included in the readme comment, this is useful for packages setting "type": "module" in the package.json that want '.js' files in the package to be able to be modules, and thus need the '.cjs' extension on all CommonJS files.

@guybedford guybedford changed the title Add support for .mjs and .cjs outputs Add support for .cjs outputs Feb 20, 2020
readme.md Show resolved Hide resolved
src/cli.js Show resolved Hide resolved
src/cli.js Outdated Show resolved Hide resolved
src/cli.js Outdated Show resolved Hide resolved
Copy link
Member

@styfle styfle left a comment

Choose a reason for hiding this comment

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

Thanks!

Co-Authored-By: Steven <steven@ceriously.com>
@styfle styfle changed the title Add support for .cjs outputs Add support for .cjs outputs Feb 21, 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.

None yet

2 participants