Skip to content

Preserve equals signs in define mapping values - #1102

Open
Aschenbath wants to merge 2 commits into
developit:masterfrom
Aschenbath:codex/fix-microbundle-1024
Open

Aschenbath wants to merge 2 commits into
developit:masterfrom
Aschenbath:codex/fix-microbundle-1024

Conversation

@Aschenbath

@Aschenbath Aschenbath commented Nov 8, 2026 •

Copy link
Copy Markdown

--define TOKEN=abc== currently replaces TOKEN with "abc", and expressions containing === or => are truncated and can fail to build. Split mappings at the first equals sign so the complete value reaches literal/expression conversion. Preserve the distinction between empty and missing values.

Includes a patch changeset for the next release. Adds 12 unit cases and a build fixture covering padded tokens, URLs, quotes, equality and arrow expressions, neighboring definitions, and value processors. The original implementation fails 11 unit cases and the new build fixture. With the fix, the full suite passes on the project's CI runtime, Node 14.21.3: 78 tests and 343 snapshots. Lint and both bootstrap/self-build stages pass. A separately installed package builds and executes CommonJS, ESM and UMD outputs with intact values on Node 24.22.0.

Node 24's complete suite has 54 mismatches in existing gzip-size snapshots; the Node 14 suite passes without changing existing snapshots. A separate Codex agent reviewed 1,608 generated mapping cases and found no unintended behavior changes.

Fixes #1024.

This change and its tests were prepared with assistance from OpenAI Codex. The independent review described above was performed by another Codex agent.

@changeset-bot

changeset-bot Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4f21a2c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
microbundle Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--define skips = symbol in strings

1 participant