-
-
Notifications
You must be signed in to change notification settings - Fork 148
Description
Reproduction link or steps
https://github.com/TonyRL/tsdown-jsx-repro
What is expected?
A successful build just like v0.10.2 and before.
What is actually happening?
Build failed
ℹ [ESM] Build start
ERROR Error: Build failed with 1 error:
[UNHANDLEABLE_ERROR] Error: Something went wrong inside rolldown, please report this problem at https://github.com/rolldown/rolldown/issues.
Transform failed, got [
OxcDiagnostic {
inner: OxcDiagnosticInner {
message: "Namespace tags are not supported by default. React's JSX doesn't support namespace tags. You can set `throwIfNamespace: false` to bypass this warning.",
labels: Some(
[
LabeledSpan {
label: None,
span: SourceSpan {
offset: SourceOffset(
328,
),
length: 7,
},
primary: false,
},
],
),
help: None,
severity: Warning,
code: OxcCode {
scope: None,
number: None,
},
url: None,
},
},
]
at normalizeErrors (file://tsdown-jsx-repro/node_modules/.pnpm/rolldown@1.0.0-beta.8-commit.534fde3/node_modules/rolldown/dist/shared/src-DN7it0tm.mjs:2198:18)
at handleOutputErrors (file://tsdown-jsx-repro/node_modules/.pnpm/rolldown@1.0.0-beta.8-commit.534fde3/node_modules/rolldown/dist/shared/src-DN7it0tm.mjs:4331:34)
at transformToRollupOutput (file://tsdown-jsx-repro/node_modules/.pnpm/rolldown@1.0.0-beta.8-commit.534fde3/node_modules/rolldown/dist/shared/src-DN7it0tm.mjs:4325:2)
at RolldownBuild.write (file://tsdown-jsx-repro/node_modules/.pnpm/rolldown@1.0.0-beta.8-commit.534fde3/node_modules/rolldown/dist/shared/src-DN7it0tm.mjs:5550:11)
at async build (file://tsdown-jsx-repro/node_modules/.pnpm/rolldown@1.0.0-beta.8-commit.534fde3/node_modules/rolldown/dist/shared/src-DN7it0tm.mjs:5595:22)
at async file://tsdown-jsx-repro/node_modules/.pnpm/tsdown@0.11.1_typescript@5.8.3_unplugin-lightningcss@0.3.3/node_modules/tsdown/dist/index.js:592:5
at async Promise.all (index 0)
at async rebuild (file://tsdown-jsx-repro/node_modules/.pnpm/tsdown@0.11.1_typescript@5.8.3_unplugin-lightningcss@0.3.3/node_modules/tsdown/dist/index.js:583:3)
at async buildSingle (file://tsdown-jsx-repro/node_modules/.pnpm/tsdown@0.11.1_typescript@5.8.3_unplugin-lightningcss@0.3.3/node_modules/tsdown/dist/index.js:575:2)
at async Promise.all (index 0)
at async build (file://tsdown-jsx-repro/node_modules/.pnpm/tsdown@0.11.1_typescript@5.8.3_unplugin-lightningcss@0.3.3/node_modules/tsdown/dist/index.js:547:19)
at async CAC.<anonymous> (file://tsdown-jsx-repro/node_modules/.pnpm/tsdown@0.11.1_typescript@5.8.3_unplugin-lightningcss@0.3.3/node_modules/tsdown/dist/run.js:20:2)
at async runCLI (file://tsdown-jsx-repro/node_modules/.pnpm/tsdown@0.11.1_typescript@5.8.3_unplugin-lightningcss@0.3.3/node_modules/tsdown/dist/run.js:38:3) {
errors: [Getter/Setter]
}Any additional comments?
It seems that there are no ways to set throwIfNamespace: false to rolldown.
When I tried to override inputOptions, the jsx option only allows https://github.com/rolldown/rolldown/blob/f932e9e5c33e6d132f44c972c6fb18e08ebc2d3d/packages/rolldown/src/options/input-options.ts#L224.
When I tried to override the jsx key in transform option, jsx is also omitted https://github.com/rolldown/rolldown/blob/f932e9e5c33e6d132f44c972c6fb18e08ebc2d3d/packages/rolldown/src/options/input-options.ts#L18 which means I can't change throwIfNamespace https://github.com/rolldown/rolldown/blob/f932e9e5c33e6d132f44c972c6fb18e08ebc2d3d/packages/rolldown/src/binding.d.ts#L1091.
Related: DIYgod/RSSHub#19034