]> Piment Noir Git Repositories - poolifier.git/blobdiff - examples/typescript/websocket-server-pool/ws-cluster/rollup.config.ts
Merge pull request #2030 from jerome-benoit/dependabot/npm_and_yarn/examples/typescri...
[poolifier.git] / examples / typescript / websocket-server-pool / ws-cluster / rollup.config.ts
index ff47feedeb349e94de8242b2997277a3a7f7a26f..ee1b4c2cf8751b56a7a26d046be1dd7a26474261 100644 (file)
@@ -1,29 +1,29 @@
 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({
+  external: [/^node:*/, 'poolifier', 'ws'],
   input: ['./src/main.ts', './src/worker.ts'],
-  strictDeprecations: true,
   output: [
     {
-      format: 'cjs',
+      chunkFileNames: '[name]-[hash].cjs',
       dir: './dist',
-      sourcemap: true,
       entryFileNames: '[name].cjs',
-      chunkFileNames: '[name]-[hash].cjs'
+      format: 'cjs',
+      sourcemap: true,
     },
     {
-      format: 'esm',
       dir: './dist',
-      sourcemap: true
-    }
+      format: 'esm',
+      sourcemap: true,
+    },
   ],
-  external: ['node:path', 'node:url', 'poolifier', 'ws'],
   plugins: [
     typescript(),
     del({
-      targets: ['./dist/*']
-    })
-  ]
+      targets: ['./dist/*'],
+    }),
+  ],
+  strictDeprecations: true,
 })