@modern-js/plugin-swc 2.0.2 → 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 CHANGED
@@ -1,5 +1,31 @@
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
+
16
+ ## 2.1.0
17
+
18
+ ### Patch Changes
19
+
20
+ - 6562578: chore: optimize the capitalization of plugin names
21
+
22
+ chore: 规范引用插件时的命名格式,统一使用 camelCase 代替 PascalCase
23
+
24
+ - Updated dependencies [837620c]
25
+ - Updated dependencies [8a9482c]
26
+ - @modern-js/builder-plugin-swc@2.1.0
27
+ - @modern-js/utils@2.1.0
28
+
3
29
  ## 2.0.2
4
30
 
5
31
  ### 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.PluginSwc)(config.tools.swc)]);
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.0.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.0.2",
31
- "@modern-js/utils": "2.0.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.0.2",
39
- "@modern-js/builder-shared": "2.0.2",
40
- "@modern-js/babel-preset-app": "2.0.2",
41
- "@modern-js/types": "2.0.2",
42
- "@scripts/jest-config": "2.0.2",
43
- "@scripts/build": "2.0.2"
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/",