repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): bump @types/express
[poolifier.git]
/
examples
/
typescript
/
http-server-pool
/
fastify-hybrid
/
rollup.config.mjs
diff --git
a/examples/typescript/http-server-pool/fastify-hybrid/rollup.config.mjs
b/examples/typescript/http-server-pool/fastify-hybrid/rollup.config.mjs
index ecc218cf4a116ecb154bd73ec1f5b1849f5385f4..a8c4e473cb7cc3772685a2f6314a773e9d0eba4b 100644
(file)
--- a/
examples/typescript/http-server-pool/fastify-hybrid/rollup.config.mjs
+++ b/
examples/typescript/http-server-pool/fastify-hybrid/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/fastify-worker.ts',
input: [
'./src/main.ts',
'./src/fastify-worker.ts',
@@
-15,15
+16,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: ['fastify', 'fastify-plugin', 'node:path', 'node:url', 'poolifier'],
}
],
external: ['fastify', 'fastify-plugin', 'node:path', 'node:url', 'poolifier'],
@@
-33,4
+31,4
@@
export default {
targets: ['./dist/*']
})
]
targets: ['./dist/*']
})
]
-}
+}
)