@vitejs/plugin-react-swc 4.2.1 → 4.2.3
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 -2
- package/package.json +16 -16
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
3
|
import { join } from "node:path";
|
|
4
|
-
import { transform } from "@swc/core";
|
|
5
4
|
import { exactRegex } from "@rolldown/pluginutils";
|
|
5
|
+
import { transform } from "@swc/core";
|
|
6
6
|
import * as vite from "vite";
|
|
7
7
|
|
|
8
8
|
//#region ../common/refresh-utils.ts
|
|
@@ -114,7 +114,7 @@ const react = (_options) => {
|
|
|
114
114
|
oxc: false,
|
|
115
115
|
optimizeDeps: {
|
|
116
116
|
include: [`${options.jsxImportSource}/jsx-dev-runtime`],
|
|
117
|
-
..."rolldownVersion" in vite ? {
|
|
117
|
+
..."rolldownVersion" in vite ? { rolldownOptions: { transform: { jsx: { runtime: "automatic" } } } } : { esbuildOptions: { jsx: "automatic" } }
|
|
118
118
|
}
|
|
119
119
|
}),
|
|
120
120
|
configResolved(config) {
|
package/package.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitejs/plugin-react-swc",
|
|
3
|
-
"version": "4.2.
|
|
4
|
-
"license": "MIT",
|
|
5
|
-
"author": "Arnaud Barré (https://github.com/ArnaudBarre)",
|
|
3
|
+
"version": "4.2.3",
|
|
6
4
|
"description": "Speed up your Vite dev server with SWC",
|
|
7
5
|
"keywords": [
|
|
8
|
-
"
|
|
9
|
-
"vite-plugin",
|
|
6
|
+
"fast refresh",
|
|
10
7
|
"react",
|
|
11
|
-
"swc",
|
|
12
8
|
"react-refresh",
|
|
13
|
-
"
|
|
9
|
+
"swc",
|
|
10
|
+
"vite",
|
|
11
|
+
"vite-plugin"
|
|
14
12
|
],
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
13
|
+
"homepage": "https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react-swc#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/vitejs/vite-plugin-react/issues"
|
|
18
16
|
},
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"author": "Arnaud Barré (https://github.com/ArnaudBarre)",
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
21
|
"url": "git+https://github.com/vitejs/vite-plugin-react.git",
|
|
22
22
|
"directory": "packages/plugin-react-swc"
|
|
23
23
|
},
|
|
24
|
-
"
|
|
25
|
-
"url": "https://github.com/vitejs/vite-plugin-react/issues"
|
|
26
|
-
},
|
|
27
|
-
"homepage": "https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react-swc#readme",
|
|
24
|
+
"type": "module",
|
|
28
25
|
"dependencies": {
|
|
29
|
-
"@rolldown/pluginutils": "1.0.0-
|
|
30
|
-
"@swc/core": "^1.
|
|
26
|
+
"@rolldown/pluginutils": "1.0.0-rc.2",
|
|
27
|
+
"@swc/core": "^1.15.11"
|
|
31
28
|
},
|
|
32
29
|
"peerDependencies": {
|
|
33
30
|
"vite": "^4 || ^5 || ^6 || ^7"
|
|
34
31
|
},
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
34
|
+
},
|
|
35
35
|
"exports": {
|
|
36
36
|
".": "./index.js",
|
|
37
37
|
"./preamble": "./types/preamble.d.ts"
|