From 49730e552cd0f5b537f3d12f1e0db16954946f0b Mon Sep 17 00:00:00 2001 From: "louis.lu" Date: Thu, 22 Feb 2024 10:22:41 +0800 Subject: [PATCH] fix: add esbuild config to drop console in prod build --- packages/extension/webpack.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/extension/webpack.config.js b/packages/extension/webpack.config.js index 6dafc8c1d..4994398f3 100644 --- a/packages/extension/webpack.config.js +++ b/packages/extension/webpack.config.js @@ -141,6 +141,7 @@ module.exports = { new EsbuildPlugin({ loader: "tsx", target: "es2020", + drop: ["console"], }), ], splitChunks: {