@modern-js/plugin-module-import 2.8.1-beta.2 → 2.10.0
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/CHANGELOG.md +17 -0
- package/dist/cjs/index.js +1 -0
- package/dist/esm/index.js +1 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @modern-js/plugin-module-import
|
|
2
2
|
|
|
3
|
+
## 2.10.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0da32d0: chore: upgrade jest and puppeteer
|
|
8
|
+
chore: 升级 jest 和 puppeteer 到 latest
|
|
9
|
+
- Updated dependencies [0da32d0]
|
|
10
|
+
- @modern-js/module-tools@2.10.0
|
|
11
|
+
|
|
12
|
+
## 2.9.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 55bb5be94a: fix: remove jsc config
|
|
17
|
+
fix: 移除 jsc 配置
|
|
18
|
+
- @modern-js/module-tools@2.9.0
|
|
19
|
+
|
|
3
20
|
## 2.8.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -42,6 +42,7 @@ var src_default = (options) => ({
|
|
|
42
42
|
(_b = config.plugins) == null ? void 0 : _b.push(
|
|
43
43
|
transformPlugin({
|
|
44
44
|
jsc: {
|
|
45
|
+
// swc transform jsx to `React.createElement` in default mode.
|
|
45
46
|
transform: {
|
|
46
47
|
react: {
|
|
47
48
|
runtime: config.jsx === "transform" ? "classic" : "automatic"
|
package/dist/esm/index.js
CHANGED
|
@@ -10,6 +10,7 @@ var src_default = (options) => ({
|
|
|
10
10
|
(_b = config.plugins) == null ? void 0 : _b.push(
|
|
11
11
|
transformPlugin({
|
|
12
12
|
jsc: {
|
|
13
|
+
// swc transform jsx to `React.createElement` in default mode.
|
|
13
14
|
transform: {
|
|
14
15
|
react: {
|
|
15
16
|
runtime: config.jsx === "transform" ? "classic" : "automatic"
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.
|
|
14
|
+
"version": "2.10.0",
|
|
15
15
|
"types": "./dist/types/index.d.ts",
|
|
16
16
|
"main": "./dist/cjs/index.js",
|
|
17
17
|
"exports": {
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
"@modern-js/libuild-plugin-swc": "~0.11.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/jest": "^
|
|
31
|
+
"@types/jest": "^29",
|
|
32
32
|
"@types/node": "^14",
|
|
33
33
|
"typescript": "^4",
|
|
34
|
-
"jest": "^
|
|
34
|
+
"jest": "^29",
|
|
35
35
|
"@modern-js/libuild": "~0.11.0",
|
|
36
|
-
"@scripts/build": "2.
|
|
37
|
-
"@scripts/jest-config": "2.
|
|
38
|
-
"@modern-js/module-tools": "2.
|
|
36
|
+
"@scripts/build": "2.10.0",
|
|
37
|
+
"@scripts/jest-config": "2.10.0",
|
|
38
|
+
"@modern-js/module-tools": "2.10.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@modern-js/module-tools": "^2.
|
|
41
|
+
"@modern-js/module-tools": "^2.10.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"@modern-js/module-tools": {
|