From 41cc4e81cb625bc350616f279453fb9a03f34aec Mon Sep 17 00:00:00 2001 From: jayjojayson <2683358+jayjojayson@users.noreply.github.com> Date: Tue, 17 Feb 2026 23:22:08 +0100 Subject: [PATCH] v_2.1 --- build.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.js b/build.js index f96453e..0b26f7c 100644 --- a/build.js +++ b/build.js @@ -49,6 +49,9 @@ console.log('Processing editor...'); let editorContent = fs.readFileSync(path.join(SRC_DIR, 'power-flux-card-editor.js'), 'utf8'); // Remove imports/exports if any editorContent = editorContent.replace(/import .* from .*/g, '').replace(/export .*/g, ''); +// Remove editorTranslations/cardTranslations declarations (already created by build merge script) +editorContent = editorContent.replace(/const editorTranslations\s*=\s*\{[^}]*\};/gs, ''); +editorContent = editorContent.replace(/const cardTranslations\s*=\s*\{[^}]*\};/gs, ''); // Process Main Card console.log('Processing main card...');