X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rollup.config.mjs;h=aac1c8cdd00740db11a5c031b31b14c850049c17;hb=410724041bab556be1385c56f9a32e5030f6f2cf;hp=29cc1f96e86610346dc42757afe07c73fae0b560;hpb=9b121f9c11621140deabb4e061d23d019fe01bb3;p=poolifier.git diff --git a/rollup.config.mjs b/rollup.config.mjs index 29cc1f96..aac1c8cd 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -41,6 +41,7 @@ export default defineConfig([ }), ...(!isDevelopmentBuild && { file: './lib/index.js', + sourcemap: true, plugins: [terser({ maxWorkers })] }) }, @@ -50,11 +51,13 @@ export default defineConfig([ dir: './lib', sourcemap: true, entryFileNames: '[name].mjs', + chunkFileNames: '[name]-[hash].mjs', preserveModules: true, preserveModulesRoot: './src' }), ...(!isDevelopmentBuild && { file: './lib/index.mjs', + sourcemap: true, plugins: [terser({ maxWorkers })] }) } @@ -71,9 +74,7 @@ export default defineConfig([ ], plugins: [ typescript({ - tsconfig: isDevelopmentBuild - ? './tsconfig.development.json' - : './tsconfig.production.json' + tsconfig: './tsconfig.build.json' }), del({ targets: ['./lib/*']