@vitejs/plugin-react 4.0.3 → 4.0.4
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/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
@@ -170,7 +170,7 @@ function viteReact(opts = {}) {
|
|
170
170
|
);
|
171
171
|
}
|
172
172
|
}
|
173
|
-
if (!plugins.length && !babelOptions.configFile && !babelOptions.babelrc) {
|
173
|
+
if (!plugins.length && !babelOptions.presets.length && !babelOptions.configFile && !babelOptions.babelrc) {
|
174
174
|
return;
|
175
175
|
}
|
176
176
|
const parserPlugins = [...babelOptions.parserOpts.plugins];
|
package/dist/index.mjs
CHANGED
@@ -150,7 +150,7 @@ function viteReact(opts = {}) {
|
|
150
150
|
);
|
151
151
|
}
|
152
152
|
}
|
153
|
-
if (!plugins.length && !babelOptions.configFile && !babelOptions.babelrc) {
|
153
|
+
if (!plugins.length && !babelOptions.presets.length && !babelOptions.configFile && !babelOptions.babelrc) {
|
154
154
|
return;
|
155
155
|
}
|
156
156
|
const parserPlugins = [...babelOptions.parserOpts.plugins];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitejs/plugin-react",
|
3
|
-
"version": "4.0.
|
3
|
+
"version": "4.0.4",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "Evan You",
|
6
6
|
"contributors": [
|
@@ -39,7 +39,7 @@
|
|
39
39
|
},
|
40
40
|
"homepage": "https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#readme",
|
41
41
|
"dependencies": {
|
42
|
-
"@babel/core": "^7.22.
|
42
|
+
"@babel/core": "^7.22.9",
|
43
43
|
"@babel/plugin-transform-react-jsx-self": "^7.22.5",
|
44
44
|
"@babel/plugin-transform-react-jsx-source": "^7.22.5",
|
45
45
|
"react-refresh": "^0.14.0"
|