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.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/TonyRL/tsdown-jsx-repro
A successful build just like v0.10.2 and before.
ℹ [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] }
It seems that there are no ways to set throwIfNamespace: false to rolldown.
throwIfNamespace: false
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.
inputOptions
jsx
transform
throwIfNamespace
Related: DIYgod/RSSHub#19034
The text was updated successfully, but these errors were encountered:
Track: rolldown/rolldown#4448 and rolldown/rolldown#4447
Sorry, something went wrong.
As a workaround, you can set target to false.
target
false
012b9fc
No branches or pull requests
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
Any additional comments?
It seems that there are no ways to set
throwIfNamespace: false
to rolldown.When I tried to override
inputOptions
, thejsx
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 intransform
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 changethrowIfNamespace
https://github.com/rolldown/rolldown/blob/f932e9e5c33e6d132f44c972c6fb18e08ebc2d3d/packages/rolldown/src/binding.d.ts#L1091.Related: DIYgod/RSSHub#19034
The text was updated successfully, but these errors were encountered: