Skip to content

Commit 51328a8

Browse files
pi0claude
andcommitted
fix(build): disable rolldown native tsconfig discovery
Rolldown reads tsconfig.json natively and applies its jsx options, while Nitro also mirrors them into transform.jsx. This caused redundant CONFIGURATION_FIELD_CONFLICT warnings (jsx, jsxImportSource). Set tsconfig: false so Nitro's resolved config is the single source of truth, consistent with the Rollup builder. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 57ad8fe commit 51328a8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/build/rolldown/config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ export const getRolldownConfig = async (nitro: Nitro): Promise<RolldownOptions>
1515
platform: nitro.options.node ? "node" : "neutral",
1616
cwd: nitro.options.rootDir,
1717
input: nitro.options.entry,
18+
// Nitro resolves `tsconfig` and passes relevant options (e.g. `transform.jsx`) explicitly.
19+
// Disable Rolldown's own tsconfig discovery to avoid `CONFIGURATION_FIELD_CONFLICT` warnings
20+
// and keep behavior consistent with the Rollup builder.
21+
tsconfig: false,
1822
external: [...base.env.external, ...builtinModules, ...builtinModules.map((m) => `node:${m}`)],
1923
plugins: [...((await baseBuildPlugins(nitro, base)) as RolldownPlugin[])],
2024
resolve: {

0 commit comments

Comments
 (0)