Skip to content

Commit 2365703

Browse files
committed
use hack
1 parent b396c8c commit 2365703

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,14 @@ export async function build({
8383
build.onLoad(
8484
{ namespace: "client", filter: /\.ts[x]$/ },
8585
async ({ path, loader }) => {
86-
return { contents: await Bun.file(path).text(), loader };
86+
const contents = await Bun.file(path).text();
87+
return {
88+
contents: contents.replaceAll(
89+
/\/\/\s*@server-side[^\n\S]*\n[^\n]+\n/g,
90+
""
91+
),
92+
loader,
93+
};
8794
}
8895
);
8996
},

0 commit comments

Comments
 (0)