From 5f4255b9ce0583e5a7ad9440493cdaa64d1e664b Mon Sep 17 00:00:00 2001 From: Furkan Sahin Date: Tue, 19 Jul 2022 14:11:37 -0400 Subject: Typescript `sourmap` = Svelte `sourceMap` --- rollup.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' -- cgit v1.2.3