import analyze from 'rollup-plugin-analyzer'
import command from 'rollup-plugin-command'
import del from 'rollup-plugin-delete'
+import { defineConfig } from 'rollup'
const availableParallelism = () => {
let availableParallelism = 1
const maxWorkers = Math.floor(availableParallelism() / 2)
-export default [
+export default defineConfig([
{
input: './src/index.ts',
strictDeprecations: true,
plugins: [
typescript({
tsconfig: isDevelopmentBuild
- ? 'tsconfig.development.json'
- : 'tsconfig.production.json'
+ ? './tsconfig.development.json'
+ : './tsconfig.production.json'
}),
del({
targets: ['./lib/*']
isAnalyzeBuild && analyze()
]
}
-]
+])