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

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 👍

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