Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

support .cjs extension #1736

Merged
merged 1 commit into from
Oct 15, 2021
Merged

support .cjs extension #1736

merged 1 commit into from
Oct 15, 2021

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 👍

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants