Skip to content

Commit

Permalink
Added better value checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian Bote committed Feb 5, 2018
1 parent 9cd9a06 commit 67b7c52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli.js
Expand Up @@ -19,7 +19,7 @@ prog
.option('--strict', 'Enforce undefined global context and add "use strict"')
.option('--name', 'Specify name exposed in UMD builds')
.option('--cwd', 'Use an alternative working directory', '.')
.option('--source-map', 'Enable the source map', true);
.option('--sourcemap', 'Generate source map', true);

prog
.command('build [...entries]', '', { default: true })
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -310,7 +310,7 @@ function createConfig(options, entry, format, writeMeta) {
strict: options.strict===true,
legacy: true,
freeze: false,
sourcemap: options.sourcemap===true || options.sourceMap===true,
sourcemap: options.sourcemap===true || options.sourcemap===undefined,
treeshake: {
propertyReadSideEffects: false
},
Expand Down

0 comments on commit 67b7c52

Please sign in to comment.