chore: cleanup `@std/expect` imports
[poolifier.git] / ws-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/websocket-server-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 preserveModules: true,
20 preserveModulesRoot: './src'
21 },
22 {
23 format: 'esm',
24 dir: './dist',
25 sourcemap: true,
26 preserveModules: true,
27 preserveModulesRoot: './src'
28 }
29 ],
30 external: ['node:path', 'node:url', 'poolifier', 'ws'],
31 plugins: [
32 typescript(),
33 del({
34 targets: ['./dist/*']
35 })
36 ]
37 })