diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2022-07-19 14:11:37 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2022-07-19 14:11:37 -0400 |
| commit | 5f4255b9ce0583e5a7ad9440493cdaa64d1e664b (patch) | |
| tree | c03372c93e1b4474376531b92f86ee38e5cc6342 | |
| parent | 82e8b7fc5155be2ec80e158a2221e4ab0b5e12ba (diff) | |
Typescript `sourmap` = Svelte `sourceMap`
| -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' |
