build(deps-dev): apply updates
[poolifier.git] / examples / typescript / http-server-pool / fastify-hybrid / rollup.config.ts
index 293d69fc289db45a0b282478ba44de0c3e21216c..ae79b9bcf0e0b04525c6ee13ce14ff0728bfc454 100644 (file)
@@ -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/*'],
+    }),
+  ],
 })