From 326096e20f18d809eef294c7ababcaaa5d46b725 Mon Sep 17 00:00:00 2001 From: SGavrl <277843151+SGavrl@users.noreply.github.com> Date: Sat, 30 May 2026 19:11:34 +0000 Subject: [PATCH] Engine tier1 compat fixes (#208) * engine: document.currentScript, data: subresources, dynamic module scripts document.currentScript: - ScriptInfo now carries the script element's nid. - Before each script body runs, set globalThis.__currentScriptNid; clear after. - Document.currentScript getter wraps the current nid. Next.js / Turbopack reads document.currentScript.src to derive the chunk base path. Without this the loader saw null, threw 'chunk path empty', and hydration stalled. - Also threaded through the dynamic-script appendChild path so synchronously injected