@modern-js/plugin-swc 2.25.1 → 2.26.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,29 @@
1
1
  # @modern-js/core
2
2
 
3
+ ## 2.26.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 60ce599: fix(plugin-swc): skip SWC plugin when using Rspack
8
+
9
+ fix(plugin-swc): 使用 Rspack 时跳过 SWC 插件
10
+
11
+ - Updated dependencies [60ce599]
12
+ - @modern-js/builder-plugin-swc@2.26.0
13
+ - @modern-js/utils@2.26.0
14
+
15
+ ## 2.25.2
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [63d8247]
20
+ - Updated dependencies [6651684]
21
+ - Updated dependencies [74449be]
22
+ - Updated dependencies [272646c]
23
+ - Updated dependencies [358ed24]
24
+ - @modern-js/utils@2.25.2
25
+ - @modern-js/builder-plugin-swc@2.25.2
26
+
3
27
  ## 2.25.1
4
28
 
5
29
  ### Patch Changes
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ function factory(name, modifySwcOptions) {
18
18
  },
19
19
  prepare() {
20
20
  const context = api.useAppContext();
21
- if (!context.builder) {
21
+ if (!context.builder || context.bundlerType === 'rspack') {
22
22
  return;
23
23
  }
24
24
  const config = api.useResolvedConfigContext();
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "modern",
15
15
  "modern.js"
16
16
  ],
17
- "version": "2.25.1",
17
+ "version": "2.26.0",
18
18
  "jsnext:source": "./src/index.ts",
19
19
  "types": "./dist/index.d.ts",
20
20
  "main": "./dist/index.js",
@@ -30,18 +30,18 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@modern-js/builder-plugin-swc": "2.25.1",
34
- "@modern-js/utils": "2.25.1"
33
+ "@modern-js/builder-plugin-swc": "2.26.0",
34
+ "@modern-js/utils": "2.26.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/jest": "^29",
38
38
  "@types/node": "^14",
39
39
  "typescript": "^5",
40
- "@modern-js/app-tools": "2.25.1",
41
- "@modern-js/builder-shared": "2.25.1",
42
- "@modern-js/types": "2.25.1",
43
- "@scripts/jest-config": "2.25.1",
44
- "@scripts/build": "2.25.1"
40
+ "@modern-js/app-tools": "2.26.0",
41
+ "@modern-js/builder-shared": "2.26.0",
42
+ "@modern-js/types": "2.26.0",
43
+ "@scripts/jest-config": "2.26.0",
44
+ "@scripts/build": "2.26.0"
45
45
  },
46
46
  "publishConfig": {
47
47
  "registry": "https://registry.npmjs.org/",