diff options
Diffstat (limited to 'rollup.config.js')
| -rw-r--r-- | rollup.config.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rollup.config.js b/rollup.config.js index df68891..e0d1445 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -8,6 +8,7 @@ import typescript from '@rollup/plugin-typescript'; import css from 'rollup-plugin-css-only'; import json from '@rollup/plugin-json'; +// ROLLUP_WATCH is set by the `-w` flag in `rollup -c -w` in `package.json` const production = !process.env.ROLLUP_WATCH; function serve() { @@ -34,7 +35,7 @@ function serve() { export default { input: 'src/main.ts', output: { - sourcemap: true, + sourcemap: !production, format: 'iife', name: 'app', file: 'public/build/bundle.js' |
