@vitejs/plugin-react-swc 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -3
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -128,7 +128,7 @@ const react = (_options) => {
|
|
|
128
128
|
oxc: false,
|
|
129
129
|
optimizeDeps: {
|
|
130
130
|
include: [`${options.jsxImportSource}/jsx-dev-runtime`],
|
|
131
|
-
..."rolldownVersion" in vite ? { rollupOptions: { jsx: {
|
|
131
|
+
..."rolldownVersion" in vite ? { rollupOptions: { transform: { jsx: { runtime: "automatic" } } } } : { esbuildOptions: { jsx: "automatic" } }
|
|
132
132
|
}
|
|
133
133
|
}),
|
|
134
134
|
configResolved(config) {
|
|
@@ -232,11 +232,10 @@ const transformWithOptions = async (id, code, target, options, reactConfig) => {
|
|
|
232
232
|
}
|
|
233
233
|
return result;
|
|
234
234
|
};
|
|
235
|
-
var src_default = react;
|
|
236
235
|
function pluginForCjs(options) {
|
|
237
236
|
return react.call(this, options);
|
|
238
237
|
}
|
|
239
238
|
Object.assign(pluginForCjs, { default: pluginForCjs });
|
|
240
239
|
|
|
241
240
|
//#endregion
|
|
242
|
-
export {
|
|
241
|
+
export { react as default, pluginForCjs as "module.exports" };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitejs/plugin-react-swc",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arnaud Barré (https://github.com/ArnaudBarre)",
|
|
6
6
|
"description": "Speed up your Vite dev server with SWC",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react-swc#readme",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@rolldown/pluginutils": "1.0.0-beta.
|
|
29
|
+
"@rolldown/pluginutils": "1.0.0-beta.32",
|
|
30
30
|
"@swc/core": "^1.13.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|