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({
input: [
'./src/main.ts',
'./src/fastify-worker.ts',
- './src/request-handler-worker.ts'
+ './src/request-handler-worker.ts',
],
strictDeprecations: true,
output: [
dir: './dist',
sourcemap: true,
entryFileNames: '[name].cjs',
- chunkFileNames: '[name]-[hash].cjs'
+ chunkFileNames: '[name]-[hash].cjs',
},
{
format: 'esm',
dir: './dist',
- sourcemap: true
- }
+ sourcemap: true,
+ },
],
external: ['fastify', 'fastify-plugin', /^node:*/, 'poolifier'],
plugins: [
typescript(),
del({
- targets: ['./dist/*']
- })
- ]
+ targets: ['./dist/*'],
+ }),
+ ],
})