From: Jérôme Benoit Date: Mon, 30 Oct 2023 20:10:17 +0000 (+0100) Subject: perf: reduce bundle size by specifing external deps X-Git-Tag: v1.2.24~63 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ae2f5292bc112c82d4425df26da77dd8e3f6667b;p=e-mobility-charging-stations-simulator.git perf: reduce bundle size by specifing external deps Signed-off-by: Jérôme Benoit --- diff --git a/bundle.js b/bundle.js index 84b45f8d..708a4de9 100644 --- a/bundle.js +++ b/bundle.js @@ -14,7 +14,25 @@ const sourcemap = !!isDevelopmentBuild; bundle: true, platform: 'node', format: 'esm', - external: ['@mikro-orm/*'], + external: [ + '@mikro-orm/*', + 'ajv', + 'ajv-formats', + 'basic-ftp', + 'chalk', + 'date-fns', + 'http-status-codes', + 'just-merge', + 'logform', + 'mnemonist', + 'mongodb', + 'node:*', + 'poolifier', + 'tar', + 'winston', + 'winston-daily-rotate-file', + 'ws', + ], minify: true, sourcemap, entryNames: '[name]',