Skip to content

Conversation

@justlep
Copy link
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
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