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