From: Jérôme Benoit Date: Mon, 30 Oct 2023 13:29:01 +0000 (+0100) Subject: build: fix esbuild build options X-Git-Tag: v1.2.24~65 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4eeee49c28f761eadb19ed3759c578b239f872ad;p=e-mobility-charging-stations-simulator.git build: fix esbuild build options Signed-off-by: Jérôme Benoit --- diff --git a/bundle.js b/bundle.js index ede14a96..84b45f8d 100644 --- a/bundle.js +++ b/bundle.js @@ -17,7 +17,11 @@ const sourcemap = !!isDevelopmentBuild; external: ['@mikro-orm/*'], minify: true, sourcemap, + entryNames: '[name]', outdir: './dist', + banner: { + js: "import { createRequire } from 'module';const require = createRequire(import.meta.url);", + }, plugins: [ clean({ patterns: [