From 9411c9dc2c72f39f3c37563bfbe21942effee251 Mon Sep 17 00:00:00 2001 From: dpiercey Date: Mon, 19 Aug 2024 16:07:28 -0700 Subject: [PATCH] fix: ensure MARKO_DEBUG is stripped for translators --- .changeset/serious-penguins-refuse.md | 6 ++++++ packages/translator-interop/scripts/bundle.ts | 3 +++ packages/translator-tags/scripts/bundle.ts | 3 +++ 3 files changed, 12 insertions(+) create mode 100644 .changeset/serious-penguins-refuse.md diff --git a/.changeset/serious-penguins-refuse.md b/.changeset/serious-penguins-refuse.md new file mode 100644 index 0000000000..58d2dd5f18 --- /dev/null +++ b/.changeset/serious-penguins-refuse.md @@ -0,0 +1,6 @@ +--- +"@marko/translator-interop-class-tags": patch +"@marko/translator-tags": patch +--- + +Fix issue where MARKO_DEBUG was not being processed when bundling @marko/translator-tags and @marko/translator-interop. diff --git a/packages/translator-interop/scripts/bundle.ts b/packages/translator-interop/scripts/bundle.ts index a8d63774af..7e511b0268 100644 --- a/packages/translator-interop/scripts/bundle.ts +++ b/packages/translator-interop/scripts/bundle.ts @@ -12,6 +12,9 @@ build({ platform: "node", packages: "external", entryPoints: [`src/index.ts`], + define: { + MARKO_DEBUG: "false", + }, }).catch((err) => { console.error(err); process.exit(1); diff --git a/packages/translator-tags/scripts/bundle.ts b/packages/translator-tags/scripts/bundle.ts index ad2bf1321f..479224da24 100644 --- a/packages/translator-tags/scripts/bundle.ts +++ b/packages/translator-tags/scripts/bundle.ts @@ -22,6 +22,9 @@ build({ platform: "node", external: [...external], entryPoints: [`src/index.ts`], + define: { + MARKO_DEBUG: "false", + }, }).catch((err) => { console.error(err); process.exit(1);