Skip to content

Commit

Permalink
fix(umd): add sourcemap to minified
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Sep 22, 2017
1 parent d710a4d commit facfcf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/build/rollup.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function getCommands(env = '') {
return formats.reduce((cmds, format) => {
const [formatName, minify = false] = format.split('.')
const nodeEnv = minify ? 'production' : 'development'
const sourceMap = format === 'umd' ? '--sourcemap' : ''
const sourceMap = formatName === 'umd' ? '--sourcemap' : ''
const buildMinify = Boolean(minify)
cmds[format] = getCommand(
`BUILD_FORMAT=${formatName} BUILD_MINIFY=${buildMinify} NODE_ENV=${nodeEnv} ${env}`,
Expand Down

0 comments on commit facfcf6

Please sign in to comment.