From d8f4877d5ed26610648f445461b357960d6117a5 Mon Sep 17 00:00:00 2001 From: jongwoo Yoo Date: Mon, 7 Jun 2021 19:33:02 +0900 Subject: [PATCH] fix: warning when npm run build fix: warning when npm run build `(!) Plugin typescript: @rollup/plugin-typescript: Rollup 'sourcemap' option must be set to generate source maps.` --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index e8965ec8..c7aaaa60 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -31,7 +31,7 @@ function serve() { export default { input: 'src/main.js', output: { - sourcemap: true, + sourcemap: !production, format: 'iife', name: 'app', file: 'public/build/bundle.js'