import analyze from 'rollup-plugin-analyzer'
import command from 'rollup-plugin-command'
import del from 'rollup-plugin-delete'
-import istanbul from 'rollup-plugin-istanbul'
import { terser } from 'rollup-plugin-terser'
import ts from 'rollup-plugin-ts'
...(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
: 'tsconfig.json',
browserslist: false
}),
- isDevelopmentBuild && istanbul(),
del({
targets: ['lib/*']
}),