From: Jérôme Benoit Date: Mon, 28 Aug 2023 23:26:30 +0000 (+0200) Subject: build(simulator): use defineConfig for rollup configuration X-Git-Tag: v1.2.21~49 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=2172e2828cb1e981012542f9c9bccbe0dd0fdb7b;p=e-mobility-charging-stations-simulator.git build(simulator): use defineConfig for rollup configuration Signed-off-by: Jérôme Benoit --- diff --git a/rollup.config.mjs b/rollup.config.mjs index 6ba68519..c28aaf04 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -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(), ], -}; +});