From 9c19bd70c26b5b34308ad3c3474eb16584545333 Mon Sep 17 00:00:00 2001 From: KoloMl Date: Wed, 9 Apr 2025 00:48:40 +0400 Subject: [PATCH] Enable minification of exports for content scripts --- .vite/lib/content-scripts.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.vite/lib/content-scripts.js b/.vite/lib/content-scripts.js index 780b612..f9385ca 100644 --- a/.vite/lib/content-scripts.js +++ b/.vite/lib/content-scripts.js @@ -175,7 +175,9 @@ export async function buildScriptsAndStyles(buildOptions) { amd: { // amd-lite requires names even for the entry-point scripts, so we should make sure to add those. autoId: true, - } + }, + // All these modules are not intended to be used outside of extension anyway + minifyInternalExports: true, } }, emptyOutDir: false,