repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/fastify-hybrid...
[poolifier.git]
/
rollup.config.mjs
diff --git
a/rollup.config.mjs
b/rollup.config.mjs
index 3d069f7f7b0f6956ec192bb40748db09bee76a1c..d4af3f3ff624310388649f22934a60e7cf867d18 100644
(file)
--- a/
rollup.config.mjs
+++ b/
rollup.config.mjs
@@
-66,44
+66,32
@@
export default defineConfig([
})
}
],
})
}
],
- external: [
- 'node:async_hooks',
- 'node:cluster',
- 'node:crypto',
- 'node:events',
- 'node:fs',
- 'node:os',
- 'node:perf_hooks',
- 'node:worker_threads'
- ],
+ external: [/^node:*/],
plugins: [
typescript({
plugins: [
typescript({
- tsconfig: './tsconfig.build.json'
+ tsconfig: './tsconfig.build.json',
+ compilerOptions: {
+ sourceMap: sourcemap
+ }
}),
del({
targets: ['./lib/*']
}),
}),
del({
targets: ['./lib/*']
}),
-
isAnalyzeBuild
&& analyze(),
-
isDocumentationBuild
&& command('pnpm typedoc')
+
Boolean(isAnalyzeBuild)
&& analyze(),
+
Boolean(isDocumentationBuild)
&& command('pnpm typedoc')
]
},
{
input: './lib/dts/index.d.ts',
output: [{ format: 'esm', file: './lib/index.d.ts' }],
]
},
{
input: './lib/dts/index.d.ts',
output: [{ format: 'esm', file: './lib/index.d.ts' }],
- external: [
- 'node:async_hooks',
- 'node:cluster',
- 'node:events',
- 'node:perf_hooks',
- 'node:worker_threads'
- ],
+ external: [/^node:*/],
plugins: [
dts(),
del({
targets: ['./lib/dts'],
hook: 'buildEnd'
}),
plugins: [
dts(),
del({
targets: ['./lib/dts'],
hook: 'buildEnd'
}),
-
isAnalyzeBuild
&& analyze()
+
Boolean(isAnalyzeBuild)
&& analyze()
]
}
])
]
}
])