1d1f9ac2f8321943d4d6193c837fb7a82f95ebf2
[poolifier.git] / examples / typescript / http-server-pool / fastify-cluster / 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: ['./src/main.ts', './src/worker.ts'],
8 strictDeprecations: true,
9 output: [
10 {
11 format: 'cjs',
12 dir: './dist',
13 sourcemap: true,
14 entryFileNames: '[name].cjs'
15 },
16 {
17 format: 'esm',
18 dir: './dist',
19 sourcemap: true
20 }
21 ],
22 external: ['fastify', 'node:path', 'node:url', 'poolifier'],
23 plugins: [
24 typescript(),
25 del({
26 targets: ['./dist/*']
27 })
28 ]
29 })