From d20a37958318c898a72109480cee556e388cd78b Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 9 Sep 2026 08:05:26 +0000 Subject: [PATCH] fix(platform-server): avoid sourcemap corruption during domino path substitution The substitution regex `\./(.+)/third_party/domino/bundled-domino` was used to rewrite the relative execroot path emitted by Rollup for the domino external import into `../third_party/domino/bundled-domino.mjs`. However, `ng_package` runs `text_replace` across all generated package files, including `.map` files which are serialized on a single line. The `\./` pattern unintentionally matched the `./` inside `"../../"` in the `sources` array, and the greedy `.+` wildcard matched across the rest of `sources` and the `"sourcesContent": [` declaration up to the domino import within the first source file's content. This corrupted `init.mjs.map` and `_server-chunk.mjs.map` by destroying `sourcesContent` and populating `sources` with raw file contents. This commit updates the substitution regex to use a negative lookbehind `(?