Bogfix: update server module stripping function.
This commit is contained in:
Vendored
+3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user