From: Jérôme Benoit Date: Tue, 13 Jun 2023 19:44:28 +0000 (+0200) Subject: build: cleanup rollup configuration X-Git-Tag: v2.6.3~26 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=aef30681ffef8a538090276e9f1298a68ccae615;p=poolifier.git build: cleanup rollup configuration Signed-off-by: Jérôme Benoit --- diff --git a/rollup.config.mjs b/rollup.config.mjs index b5c0b285..1410f161 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -17,9 +17,9 @@ export default { output: [ { format: 'cjs', - sourcemap: !!isDevelopmentBuild, ...(isDevelopmentBuild && { dir: 'lib', + sourcemap: true, preserveModules: true, preserveModulesRoot: 'src' }), @@ -30,9 +30,9 @@ export default { }, { format: 'esm', - sourcemap: !!isDevelopmentBuild, ...(isDevelopmentBuild && { dir: 'lib', + sourcemap: true, entryFileNames: '[name].mjs', preserveModules: true, preserveModulesRoot: 'src'