Skip to content

Support .cjs files#195

Open
justlep wants to merge 1 commit intofirstandthird:masterfrom
justlep:master
Open

Support .cjs files#195
justlep wants to merge 1 commit intofirstandthird:masterfrom
justlep:master

Conversation

@justlep
Copy link

@justlep justlep commented Oct 15, 2021

When migrating projects to ES modules (setting "type": "module" globally in package.json),
then in order to leave the Grunt-related scripts CommonJS-based, those files need to have the .cjs extension to still work.

This pull request makes load-grunt-config treat .cjs files just like .js files.

Related PR for Grunt itself: gruntjs/grunt#1736

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.

1 participant