We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b396c8c commit 2365703Copy full SHA for 2365703
build.ts
@@ -83,7 +83,14 @@ export async function build({
83
build.onLoad(
84
{ namespace: "client", filter: /\.ts[x]$/ },
85
async ({ path, loader }) => {
86
- return { contents: await Bun.file(path).text(), loader };
+ 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
+ };
94
}
95
);
96
},
0 commit comments