X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rollup.config.mjs;h=9e8cd65bb0317152141a539de08f8d64c16a2c6c;hb=660689f017615c233020793967822c31975e5aa0;hp=e0c97bd6e4ebe607ec56d4c526c43206a6215393;hpb=2bdcd1127edc341c2030bd7f90f44a4caf3d9388;p=poolifier.git diff --git a/rollup.config.mjs b/rollup.config.mjs index e0c97bd6..9e8cd65b 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -5,6 +5,7 @@ import typescript from '@rollup/plugin-typescript' import analyze from 'rollup-plugin-analyzer' import command from 'rollup-plugin-command' import del from 'rollup-plugin-delete' +import { defineConfig } from 'rollup' const availableParallelism = () => { let availableParallelism = 1 @@ -25,7 +26,7 @@ const isDocumentationBuild = process.env.DOCUMENTATION const maxWorkers = Math.floor(availableParallelism() / 2) -export default [ +export default defineConfig([ { input: './src/index.ts', strictDeprecations: true, @@ -49,6 +50,7 @@ export default [ dir: './lib', sourcemap: true, entryFileNames: '[name].mjs', + chunkFileNames: '[name]-[hash].mjs', preserveModules: true, preserveModulesRoot: './src' }), @@ -100,4 +102,4 @@ export default [ isAnalyzeBuild && analyze() ] } -] +])