From 92bee070af6c66a62db8ef8f66e9e1e374b7e899 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 29 Jul 2023 01:44:22 +0200 Subject: [PATCH] refactor: cleanup rollup configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- rollup.config.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rollup.config.mjs b/rollup.config.mjs index 83c2e009..e06f14d0 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -24,6 +24,7 @@ const availableParallelism = () => { const isDevelopmentBuild = process.env.BUILD === 'development'; const isAnalyzeBuild = process.env.ANALYZE; +const sourceMap = !!isDevelopmentBuild; export default { input: ['src/start.ts', 'src/charging-station/ChargingStationWorker.ts'], @@ -32,7 +33,7 @@ export default { { dir: 'dist', format: 'esm', - sourcemap: !!isDevelopmentBuild, + sourcemap: sourceMap, plugins: [terser({ maxWorkers: Math.floor(availableParallelism() / 2) })], }, ], @@ -73,7 +74,7 @@ export default { typescript({ tsconfig: 'tsconfig.json', compilerOptions: { - sourceMap: !!isDevelopmentBuild, + sourceMap, }, }), del({ -- 2.34.1