Bogfix: update server module stripping function.

This commit is contained in:
2026-03-22 12:32:15 +01:00
parent c3e1341ff8
commit e2df3256f4
6 changed files with 157 additions and 78 deletions
+3
View File
@@ -14,6 +14,9 @@ export default async function rewritePagesModule(params) {
for (let i = 0; i < target_pages.length; i++) {
const page_path = target_pages[i];
const dst_path = pagePathTransform({ page_path });
if (page_path.match(/__root\.tsx?/)) {
continue;
}
const origin_page_content = await Bun.file(page_path).text();
const dst_page_content = stripServerSideLogic({
txt_code: origin_page_content,