From 4eeee49c28f761eadb19ed3759c578b239f872ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 30 Oct 2023 14:29:01 +0100 Subject: [PATCH] build: fix esbuild build options MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- bundle.js | 4 ++++ 1 file changed, 4 insertions(+) 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: [ -- 2.34.1