build(simulator): use defineConfig for rollup configuration
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 28 Aug 2023 23:26:30 +0000 (01:26 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 28 Aug 2023 23:26:30 +0000 (01:26 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
rollup.config.mjs

index 6ba6851921ad50c39170767bfef9487d6a0ffa59..c28aaf0460dd35fa7100ffffcba00c60c3c5b978 100644 (file)
@@ -5,6 +5,7 @@ import json from '@rollup/plugin-json';
 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';
 
@@ -26,7 +27,7 @@ const isDevelopmentBuild = process.env.BUILD === 'development';
 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: [
@@ -101,4 +102,4 @@ export default {
     }),
     isAnalyzeBuild && analyze(),
   ],
-};
+});