Skip to content

Commit cd142cc

Browse files
committed
fix(rolldown): set platform config
default can be `browser` which is unwanted
1 parent 6382d11 commit cd142cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/build/rolldown/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export const getRolldownConfig = (nitro: Nitro): RolldownOptions => {
1313
const tsc = nitro.options.typescript.tsConfig?.compilerOptions;
1414

1515
let config = {
16+
platform: nitro.options.node ? "node" : "neutral",
1617
cwd: nitro.options.rootDir,
1718
input: nitro.options.entry,
1819
external: [

0 commit comments

Comments
 (0)