X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-hybrid%2Frollup.config.ts;h=ae79b9bcf0e0b04525c6ee13ce14ff0728bfc454;hb=2efc445b630bfe0b55b843eb3d5c6025115b587c;hp=293d69fc289db45a0b282478ba44de0c3e21216c;hpb=c2515a41c44109efe5dfcb92db2fbc95dc5912ba;p=poolifier.git diff --git a/examples/typescript/http-server-pool/fastify-hybrid/rollup.config.ts b/examples/typescript/http-server-pool/fastify-hybrid/rollup.config.ts index 293d69fc..ae79b9bc 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/rollup.config.ts +++ b/examples/typescript/http-server-pool/fastify-hybrid/rollup.config.ts @@ -1,12 +1,12 @@ import typescript from '@rollup/plugin-typescript' -import del from 'rollup-plugin-delete' import { defineConfig } from 'rollup' +import del from 'rollup-plugin-delete' export default defineConfig({ input: [ './src/main.ts', './src/fastify-worker.ts', - './src/request-handler-worker.ts' + './src/request-handler-worker.ts', ], strictDeprecations: true, output: [ @@ -15,19 +15,19 @@ export default defineConfig({ dir: './dist', sourcemap: true, entryFileNames: '[name].cjs', - chunkFileNames: '[name]-[hash].cjs' + chunkFileNames: '[name]-[hash].cjs', }, { format: 'esm', dir: './dist', - sourcemap: true - } + sourcemap: true, + }, ], - external: ['fastify', 'fastify-plugin', 'node:path', 'node:url', 'poolifier'], + external: ['fastify', 'fastify-plugin', /^node:*/, 'poolifier'], plugins: [ typescript(), del({ - targets: ['./dist/*'] - }) - ] + targets: ['./dist/*'], + }), + ], })