repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: v2.7.3
[poolifier.git]
/
examples
/
typescript
/
http-server-pool
/
express-cluster
/
rollup.config.mjs
diff --git
a/examples/typescript/http-server-pool/express-cluster/rollup.config.mjs
b/examples/typescript/http-server-pool/express-cluster/rollup.config.mjs
index 5bbe0046087d70e6139f2d1c1263386fdcb45365..86ad2c86c77ec499dab1b0edfc53a12cb628e5e8 100644
(file)
--- a/
examples/typescript/http-server-pool/express-cluster/rollup.config.mjs
+++ b/
examples/typescript/http-server-pool/express-cluster/rollup.config.mjs
@@
-1,8
+1,9
@@
/* eslint-disable n/no-unpublished-import */
import typescript from '@rollup/plugin-typescript'
import del from 'rollup-plugin-delete'
/* eslint-disable n/no-unpublished-import */
import typescript from '@rollup/plugin-typescript'
import del from 'rollup-plugin-delete'
+import { defineConfig } from 'rollup'
-export default {
+export default
defineConfig(
{
input: ['./src/main.ts', './src/worker.ts'],
strictDeprecations: true,
output: [
input: ['./src/main.ts', './src/worker.ts'],
strictDeprecations: true,
output: [
@@
-11,15
+12,12
@@
export default {
dir: './dist',
sourcemap: true,
entryFileNames: '[name].cjs',
dir: './dist',
sourcemap: true,
entryFileNames: '[name].cjs',
- preserveModules: true,
- preserveModulesRoot: './src'
+ chunkFileNames: '[name]-[hash].cjs'
},
{
format: 'esm',
dir: './dist',
},
{
format: 'esm',
dir: './dist',
- sourcemap: true,
- preserveModules: true,
- preserveModulesRoot: './src'
+ sourcemap: true
}
],
external: ['express', 'node:path', 'node:url', 'poolifier'],
}
],
external: ['express', 'node:path', 'node:url', 'poolifier'],
@@
-29,4
+27,4
@@
export default {
targets: ['./dist/*']
})
]
targets: ['./dist/*']
})
]
-}
+}
)