fix(vite): support jsx namespaces (#3539)
Babel throws when encountering jsx namespaces by default. It needs a setting to not throw.
This commit is contained in:
@@ -375,6 +375,7 @@ function babelTransform(
|
||||
runtime: "automatic",
|
||||
importSource: "preact",
|
||||
development: isDev,
|
||||
throwIfNamespace: false,
|
||||
}]);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ export function patches(): Plugin {
|
||||
runtime: "automatic",
|
||||
importSource: "preact",
|
||||
development: isDev,
|
||||
throwIfNamespace: false,
|
||||
}]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user