format: 'cjs',
dir: './dist',
sourcemap: true,
- entryFileNames: '[name].cjs'
+ entryFileNames: '[name].cjs',
+ chunkFileNames: '[name]-[hash].cjs'
},
{
format: 'esm',
format: 'cjs',
dir: './dist',
sourcemap: true,
- entryFileNames: '[name].cjs'
+ entryFileNames: '[name].cjs',
+ chunkFileNames: '[name]-[hash].cjs'
},
{
format: 'esm',
format: 'cjs',
dir: './dist',
sourcemap: true,
- entryFileNames: '[name].cjs'
+ entryFileNames: '[name].cjs',
+ chunkFileNames: '[name]-[hash].cjs'
},
{
format: 'esm',
format: 'cjs',
dir: './dist',
sourcemap: true,
- entryFileNames: '[name].cjs'
+ entryFileNames: '[name].cjs',
+ chunkFileNames: '[name]-[hash].cjs'
},
{
format: 'esm',
dir: './dist',
sourcemap: true,
entryFileNames: '[name].cjs',
- preserveModules: true,
- preserveModulesRoot: './src'
+ chunkFileNames: '[name]-[hash].cjs'
},
{
format: 'esm',
dir: './dist',
- sourcemap: true,
- preserveModules: true,
- preserveModulesRoot: './src'
+ sourcemap: true
}
],
external: ['node:path', 'node:url', 'poolifier', 'ws'],
dir: './dist',
sourcemap: true,
entryFileNames: '[name].cjs',
- preserveModules: true,
- preserveModulesRoot: './src'
+ chunkFileNames: '[name]-[hash].cjs'
},
{
format: 'esm',
dir: './dist',
- sourcemap: true,
- preserveModules: true,
- preserveModulesRoot: './src'
+ sourcemap: true
}
],
external: ['node:path', 'node:url', 'poolifier', 'ws'],
dir: './lib',
sourcemap: true,
entryFileNames: '[name].mjs',
+ chunkFileNames: '[name]-[hash].mjs',
preserveModules: true,
preserveModulesRoot: './src'
}),