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