Skip to content

Commit 13fa1e0

Browse files
fix: set server output to cjs
1 parent 82e6a8a commit 13fa1e0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/custom-node-server/rsbuild.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ export default defineConfig(() => {
66
return {
77
plugins: [
88
pluginReactRouter({
9-
customServer: true
10-
}),
9+
customServer: true,
10+
serverOutput: 'commonjs',
11+
}),
1112
pluginReact()
1213
],
1314
};

0 commit comments

Comments
 (0)