@modern-js/plugin-swc 2.46.1 → 2.47.1

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -40,8 +40,12 @@ function factory(name, modifySwcOptions) {
40
40
  const { esbuild, swc = {} } = config.tools;
41
41
  const swcOptions = modifySwcOptions(swc);
42
42
  const finalConfig = applyBuilderSwcConfig(swcOptions, esbuild, (0, import_utils.isSSR)(config));
43
+ var _config_performance_transformLodash;
43
44
  context.builder.addPlugins([
44
- (0, import_plugin_swc.pluginSwc)(finalConfig)
45
+ (0, import_plugin_swc.pluginSwc)({
46
+ ...finalConfig,
47
+ transformLodash: (_config_performance_transformLodash = config.performance.transformLodash) !== null && _config_performance_transformLodash !== void 0 ? _config_performance_transformLodash : true
48
+ })
45
49
  ]);
46
50
  }
47
51
  })
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "modern",
15
15
  "modern.js"
16
16
  ],
17
- "version": "2.46.1",
17
+ "version": "2.47.1",
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
- "@rsbuild/plugin-swc": "0.3.4",
33
+ "@rsbuild/plugin-swc": "0.4.6",
34
34
  "@swc/helpers": "0.5.3",
35
- "@modern-js/utils": "2.46.1"
35
+ "@modern-js/utils": "2.47.1"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "^14",
39
39
  "@types/jest": "^29",
40
40
  "typescript": "^5",
41
- "@modern-js/types": "2.46.1",
42
- "@modern-js/app-tools": "2.46.1",
43
- "@scripts/build": "2.46.1",
44
- "@scripts/jest-config": "2.46.1"
41
+ "@modern-js/types": "2.47.1",
42
+ "@scripts/build": "2.47.1",
43
+ "@modern-js/app-tools": "2.47.1",
44
+ "@scripts/jest-config": "2.47.1"
45
45
  },
46
46
  "publishConfig": {
47
47
  "registry": "https://registry.npmjs.org/",