build: enfore tree shaking with esbuild
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 16 Mar 2024 15:13:47 +0000 (16:13 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 16 Mar 2024 15:13:47 +0000 (16:13 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
bundle.js

index 806f66c5a93b1f00fd07dffd1782da9b2d0d98c7..2d4bc8631952220d84f8a99141c794795d095606 100644 (file)
--- a/bundle.js
+++ b/bundle.js
@@ -35,6 +35,7 @@ await build({
     'winston-daily-rotate-file',
     'ws'
   ],
+  treeShaking: true,
   minify: true,
   sourcemap,
   entryNames: '[name]',