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/node
[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 0b93ba20edc677c388ff9397b6032b24e401bdcf..0654b9ae5ca87bcc48a5149e0b2e889b540f70e9 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,36
+1,33
@@
/* 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: [
input: [
- 'src/main.ts',
- 'src/fastify-worker.ts',
- 'src/request-handler-worker.ts'
+ '
./
src/main.ts',
+ '
./
src/fastify-worker.ts',
+ '
./
src/request-handler-worker.ts'
],
strictDeprecations: true,
output: [
{
format: 'cjs',
],
strictDeprecations: true,
output: [
{
format: 'cjs',
- dir: 'dist',
+ dir: '
./
dist',
sourcemap: true,
sourcemap: true,
- entryFileNames: '[name].cjs',
- preserveModules: true,
- preserveModulesRoot: 'src'
+ entryFileNames: '[name].cjs'
},
{
format: 'esm',
},
{
format: 'esm',
- dir: 'dist',
- sourcemap: true,
- preserveModules: true,
- preserveModulesRoot: 'src'
+ dir: './dist',
+ sourcemap: true
}
],
external: ['fastify', 'fastify-plugin', 'node:path', 'node:url', 'poolifier'],
plugins: [
typescript(),
del({
}
],
external: ['fastify', 'fastify-plugin', 'node:path', 'node:url', 'poolifier'],
plugins: [
typescript(),
del({
- targets: ['dist/*']
+ targets: ['
./
dist/*']
})
]
})
]
-}
+}
)