repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor(ci): cleanup GH actions
[poolifier.git]
/
examples
/
typescript
/
http-server-pool
/
express-cluster
/
rollup.config.ts
diff --git
a/examples/typescript/http-server-pool/express-cluster/rollup.config.ts
b/examples/typescript/http-server-pool/express-cluster/rollup.config.ts
index ac0da32629d1749be0c2b6c0be31df7a4f791506..2fd3760732d9afd8edf71a3712e6e8b79d771300 100644
(file)
--- a/
examples/typescript/http-server-pool/express-cluster/rollup.config.ts
+++ b/
examples/typescript/http-server-pool/express-cluster/rollup.config.ts
@@
-1,6
+1,6
@@
import typescript from '@rollup/plugin-typescript'
import typescript from '@rollup/plugin-typescript'
-import del from 'rollup-plugin-delete'
import { defineConfig } from 'rollup'
import { defineConfig } from 'rollup'
+import del from 'rollup-plugin-delete'
export default defineConfig({
input: ['./src/main.ts', './src/worker.ts'],
export default defineConfig({
input: ['./src/main.ts', './src/worker.ts'],
@@
-11,19
+11,19
@@
export default defineConfig({
dir: './dist',
sourcemap: true,
entryFileNames: '[name].cjs',
dir: './dist',
sourcemap: true,
entryFileNames: '[name].cjs',
- chunkFileNames: '[name]-[hash].cjs'
+ chunkFileNames: '[name]-[hash].cjs'
,
},
{
format: 'esm',
dir: './dist',
},
{
format: 'esm',
dir: './dist',
- sourcemap: true
- }
+ sourcemap: true
,
+ }
,
],
],
- external: ['express',
'node:path', 'node:url'
, 'poolifier'],
+ external: ['express',
/^node:*/
, 'poolifier'],
plugins: [
typescript(),
del({
plugins: [
typescript(),
del({
- targets: ['./dist/*']
- })
- ]
+ targets: ['./dist/*']
,
+ })
,
+ ]
,
})
})