From eb567761a5356c009b6224af661d5f49a8308cca Mon Sep 17 00:00:00 2001 From: NullVoxPopuli-ai-agent <268630448+NullVoxPopuli-ai-agent@users.noreply.github.com> Date: Mon, 24 Aug 2026 19:16:07 -0400 Subject: [PATCH] Sort content-tag results into source order before building placeholders content-tag reports a class's own template before a template that sits earlier in its heritage clause, so `toPlaceholderJS`'s forward walk produced misaligned placeholder JS and the whole file failed to parse. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01FsXgxh6vNRWMCNcAQ3g6TN --- src/parse.js | 5 +++++ tests/parse.test.js | 24 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/src/parse.js b/src/parse.js index 3125858..a41491e 100644 --- a/src/parse.js +++ b/src/parse.js @@ -88,6 +88,11 @@ export function toTree(source, options = {}) { } let parseResults = preprocessor.parse(source); + // content-tag reports a class's own template before a template that sits + // earlier in its heritage clause (`class A extends mixin(