Skip to content

support .cjs extension#1736

Merged
vladikoff merged 1 commit intogruntjs:mainfrom
justlep:main
Oct 15, 2021
Merged

support .cjs extension#1736
vladikoff merged 1 commit intogruntjs:mainfrom
justlep:main

Conversation

@justlep
Copy link
Copy Markdown
Contributor

@justlep justlep commented Oct 15, 2021

In projects configured for ES modules ("type": "module" set in package.json),
in order to leave all Grunt-related scripts CommonJS-based, those files need to have the .cjs extension to still work.

This pull request makes Grunt accept .cjs files just like .js files for both Gruntfile.(c)js lookup and grunt.loadTasks().

@vladikoff
Copy link
Copy Markdown
Member

@justlep thank you , looks good 👍

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