@modern-js/plugin-swc 2.1.0 → 2.2.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 +13 -0
- package/dist/index.js +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @modern-js/core
|
|
2
2
|
|
|
3
|
+
## 2.2.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 16bdc0a: chore: adjust builder plugin name
|
|
8
|
+
|
|
9
|
+
chore: 调整 builder 插件命名格式
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [49eff0c]
|
|
12
|
+
- Updated dependencies [16bdc0a]
|
|
13
|
+
- @modern-js/utils@2.2.0
|
|
14
|
+
- @modern-js/builder-plugin-swc@2.2.0
|
|
15
|
+
|
|
3
16
|
## 2.1.0
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = () => ({
|
|
|
12
12
|
const context = api.useAppContext();
|
|
13
13
|
if (context.builder) {
|
|
14
14
|
const config = api.useResolvedConfigContext();
|
|
15
|
-
context.builder.addPlugins([(0, builder_plugin_swc_1.
|
|
15
|
+
context.builder.addPlugins([(0, builder_plugin_swc_1.builderPluginSwc)(config.tools.swc)]);
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
}),
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"modern",
|
|
11
11
|
"modern.js"
|
|
12
12
|
],
|
|
13
|
-
"version": "2.
|
|
13
|
+
"version": "2.2.0",
|
|
14
14
|
"jsnext:source": "./src/index.ts",
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@modern-js/builder-plugin-swc": "2.
|
|
31
|
-
"@modern-js/utils": "2.
|
|
30
|
+
"@modern-js/builder-plugin-swc": "2.2.0",
|
|
31
|
+
"@modern-js/utils": "2.2.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@jest/types": "^27.0.6",
|
|
35
35
|
"@types/jest": "^27",
|
|
36
36
|
"@types/node": "^14",
|
|
37
37
|
"typescript": "^4",
|
|
38
|
-
"@modern-js/app-tools": "2.
|
|
39
|
-
"@modern-js/builder-shared": "2.
|
|
40
|
-
"@modern-js/babel-preset-app": "2.
|
|
41
|
-
"@modern-js/types": "2.
|
|
42
|
-
"@scripts/
|
|
43
|
-
"@scripts/
|
|
38
|
+
"@modern-js/app-tools": "2.2.0",
|
|
39
|
+
"@modern-js/builder-shared": "2.2.0",
|
|
40
|
+
"@modern-js/babel-preset-app": "2.2.0",
|
|
41
|
+
"@modern-js/types": "2.2.0",
|
|
42
|
+
"@scripts/build": "2.2.0",
|
|
43
|
+
"@scripts/jest-config": "2.2.0"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"registry": "https://registry.npmjs.org/",
|