X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rollup.config.mjs;h=7c274b1a72dd97b8f5beb243ff434d1ba84ff455;hb=9a0209e45830c76d13a928ffd071b4100214e631;hp=2b0ec5dbc17879c8e9fc2ac627b104cdda492ac0;hpb=61a90f2e524662cc63d46f0a0ffbe599b1ac44b5;p=poolifier.git diff --git a/rollup.config.mjs b/rollup.config.mjs index 2b0ec5db..7c274b1a 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -1,9 +1,8 @@ -import ts from 'rollup-plugin-ts' import analyze from 'rollup-plugin-analyzer' -import { terser } from 'rollup-plugin-terser' -import del from 'rollup-plugin-delete' import command from 'rollup-plugin-command' -import istanbul from 'rollup-plugin-istanbul' +import del from 'rollup-plugin-delete' +import { terser } from 'rollup-plugin-terser' +import ts from 'rollup-plugin-ts' const isDevelopmentBuild = process.env.BUILD === 'development' const isAnalyze = process.env.ANALYZE @@ -19,7 +18,7 @@ export default { ...(isDevelopmentBuild && { preserveModulesRoot: 'src' }), ...(!isDevelopmentBuild && { plugins: [terser({ numWorkers: 2 })] }) }, - external: ['async_hooks', 'cluster', 'events', 'worker_threads'], + external: ['async_hooks', 'cluster', 'events', 'os', 'worker_threads'], plugins: [ ts({ tsconfig: isDevelopmentBuild @@ -27,7 +26,6 @@ export default { : 'tsconfig.json', browserslist: false }), - isDevelopmentBuild && istanbul(), del({ targets: ['lib/*'] }),