87a30fead6e3be4689c74cdec56f4596675fe7ae
[poolifier.git] / examples / typescript / http-server-pool / express-hybrid / rollup.config.mjs
1 /* eslint-disable n/no-unpublished-import */
2 import typescript from '@rollup/plugin-typescript'
3 import del from 'rollup-plugin-delete'
4 import { defineConfig } from 'rollup'
5
6 export default defineConfig({
7 input: [
8 './src/main.ts',
9 './src/express-worker.ts',
10 './src/request-handler-worker.ts'
11 ],
12 strictDeprecations: true,
13 output: [
14 {
15 format: 'cjs',
16 dir: './dist',
17 sourcemap: true,
18 entryFileNames: '[name].cjs'
19 },
20 {
21 format: 'esm',
22 dir: './dist',
23 sourcemap: true
24 }
25 ],
26 external: ['express', 'node:path', 'node:url', 'poolifier'],
27 plugins: [
28 typescript(),
29 del({
30 targets: ['./dist/*']
31 })
32 ]
33 })