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

fix: Enable es-modules by default. #889

Merged
merged 1 commit into from Jul 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/config-util.js
Expand Up @@ -116,7 +116,7 @@ Config.buildYargs = function (cwd) {
global: false
})
.option('es-modules', {
default: false,
default: true,
type: 'boolean',
describe: 'tell the instrumenter to treat files as ES Modules',
global: false
Expand Down
2 changes: 1 addition & 1 deletion test/nyc-bin.js
Expand Up @@ -1035,6 +1035,7 @@ describe('the nyc cli', function () {
const args = [
bin,
'--cache', 'false',
'--es-modules', 'false',
process.execPath, './not-strict.js'
]

Expand Down Expand Up @@ -1065,7 +1066,6 @@ describe('the nyc cli', function () {
const args = [
bin,
'--cache', 'false',
'--es-modules', 'true',
'--exit-on-error', 'true',
process.execPath, './not-strict.js'
]
Expand Down