import terser from '@rollup/plugin-terser';
import typescript from '@rollup/plugin-typescript';
import { copy } from '@web/rollup-plugin-copy';
+import { defineConfig } from 'rollup';
import analyze from 'rollup-plugin-analyzer';
import del from 'rollup-plugin-delete';
const isAnalyzeBuild = process.env.ANALYZE;
const sourceMap = !!isDevelopmentBuild;
-export default {
+export default defineConfig({
input: ['./src/start.ts', './src/charging-station/ChargingStationWorker.ts'],
strictDeprecations: true,
output: [
}),
isAnalyzeBuild && analyze(),
],
-};
+});