We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
throwIfNamespace
1 parent 2266d83 commit f842f74Copy full SHA for f842f74
packages/plugin-react/src/index.ts
@@ -40,6 +40,11 @@ export interface Options {
40
* @default true
41
*/
42
jsxPure?: boolean
43
+ /**
44
+ * Toggles whether or not to throw an error if an XML namespaced tag name is used.
45
+ * @default true
46
+ */
47
+ jsxThrowIfNamespace?: boolean
48
/**
49
* Babel configuration applied in both dev and prod.
50
@@ -248,7 +253,8 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
248
253
{
249
254
runtime: 'automatic',
250
255
importSource: opts.jsxImportSource,
251
- pure: opts.jsxPure !== false
256
+ pure: opts.jsxPure !== false,
257
+ throwIfNamespace: opts.jsxThrowIfNamespace
252
258
}
259
])
260
0 commit comments