@modern-js/server-utils 2.29.0 → 2.31.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/server-utils
2
2
 
3
+ ## 2.31.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [1882366]
8
+ - @modern-js/utils@2.31.0
9
+ - @modern-js/babel-preset-base@2.31.0
10
+ - @modern-js/babel-compiler@2.31.0
11
+ - @modern-js/babel-plugin-module-resolver@2.31.0
12
+
13
+ ## 2.30.0
14
+
15
+ ### Patch Changes
16
+
17
+ - cc5f49e: feat(builder): add performance.transformLodash config
18
+
19
+ feat(builder): 新增 performance.transformLodash 配置
20
+
21
+ - Updated dependencies [cc5f49e]
22
+ - @modern-js/babel-preset-base@2.30.0
23
+ - @modern-js/utils@2.30.0
24
+ - @modern-js/babel-plugin-module-resolver@2.30.0
25
+ - @modern-js/babel-compiler@2.30.0
26
+
3
27
  ## 2.29.0
4
28
 
5
29
  ### Patch Changes
@@ -23,7 +23,7 @@ const _alias = require("./alias");
23
23
  _export_star._(require("./types"), exports);
24
24
  const _utils = require("@modern-js/utils");
25
25
  const getBabelChain = (libPresetOption, syntaxOption) => {
26
- const { appDirectory, jsxTransformRuntime, enableReactPreset, enableTypescriptPreset, lodashOptions, styledComponentsOptions } = libPresetOption;
26
+ const { appDirectory, jsxTransformRuntime, enableReactPreset, enableTypescriptPreset, styledComponentsOptions } = libPresetOption;
27
27
  const { syntax, type } = syntaxOption;
28
28
  const chain = (0, _babelpresetbase.getBaseBabelChain)({
29
29
  appDirectory,
@@ -43,7 +43,6 @@ const getBabelChain = (libPresetOption, syntaxOption) => {
43
43
  // for es5 code need helper functions
44
44
  helpers: syntaxOption.syntax === "es5"
45
45
  },
46
- lodashOptions,
47
46
  styledComponentsOptions
48
47
  },
49
48
  jsxTransformRuntime
@@ -2,7 +2,7 @@ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
2
2
  import { getBaseBabelChain } from "@modern-js/babel-preset-base";
3
3
  import { aliasPlugin } from "./alias";
4
4
  export var getBabelChain = function(libPresetOption, syntaxOption) {
5
- var appDirectory = libPresetOption.appDirectory, jsxTransformRuntime = libPresetOption.jsxTransformRuntime, enableReactPreset = libPresetOption.enableReactPreset, enableTypescriptPreset = libPresetOption.enableTypescriptPreset, lodashOptions = libPresetOption.lodashOptions, styledComponentsOptions = libPresetOption.styledComponentsOptions;
5
+ var appDirectory = libPresetOption.appDirectory, jsxTransformRuntime = libPresetOption.jsxTransformRuntime, enableReactPreset = libPresetOption.enableReactPreset, enableTypescriptPreset = libPresetOption.enableTypescriptPreset, styledComponentsOptions = libPresetOption.styledComponentsOptions;
6
6
  var syntax = syntaxOption.syntax, type = syntaxOption.type;
7
7
  var chain = getBaseBabelChain({
8
8
  appDirectory: appDirectory,
@@ -22,7 +22,6 @@ export var getBabelChain = function(libPresetOption, syntaxOption) {
22
22
  // for es5 code need helper functions
23
23
  helpers: syntaxOption.syntax === "es5"
24
24
  },
25
- lodashOptions: lodashOptions,
26
25
  styledComponentsOptions: styledComponentsOptions
27
26
  },
28
27
  jsxTransformRuntime: jsxTransformRuntime
@@ -1,7 +1,7 @@
1
1
  import { getBaseBabelChain } from "@modern-js/babel-preset-base";
2
2
  import { aliasPlugin } from "./alias";
3
3
  export const getBabelChain = (libPresetOption, syntaxOption) => {
4
- const { appDirectory, jsxTransformRuntime, enableReactPreset, enableTypescriptPreset, lodashOptions, styledComponentsOptions } = libPresetOption;
4
+ const { appDirectory, jsxTransformRuntime, enableReactPreset, enableTypescriptPreset, styledComponentsOptions } = libPresetOption;
5
5
  const { syntax, type } = syntaxOption;
6
6
  const chain = getBaseBabelChain({
7
7
  appDirectory,
@@ -21,7 +21,6 @@ export const getBabelChain = (libPresetOption, syntaxOption) => {
21
21
  // for es5 code need helper functions
22
22
  helpers: syntaxOption.syntax === "es5"
23
23
  },
24
- lodashOptions,
25
24
  styledComponentsOptions
26
25
  },
27
26
  jsxTransformRuntime
@@ -13,7 +13,6 @@ export interface ILibPresetOption {
13
13
  appDirectory: string;
14
14
  enableTypescriptPreset?: boolean;
15
15
  enableReactPreset?: boolean;
16
- lodashOptions?: any;
17
16
  alias?: AliasOption;
18
17
  jsxTransformRuntime?: JsxTransformRuntimeType;
19
18
  styledComponentsOptions?: IStyledComponentOptions;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.29.0",
18
+ "version": "2.31.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -38,10 +38,10 @@
38
38
  "@babel/preset-typescript": "^7.21.5",
39
39
  "babel-plugin-transform-typescript-metadata": "^0.3.2",
40
40
  "@swc/helpers": "0.5.1",
41
- "@modern-js/babel-compiler": "2.29.0",
42
- "@modern-js/babel-preset-base": "2.29.0",
43
- "@modern-js/utils": "2.29.0",
44
- "@modern-js/babel-plugin-module-resolver": "2.29.0"
41
+ "@modern-js/babel-compiler": "2.31.0",
42
+ "@modern-js/babel-preset-base": "2.31.0",
43
+ "@modern-js/utils": "2.31.0",
44
+ "@modern-js/babel-plugin-module-resolver": "2.31.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/babel__core": "^7.20.0",
@@ -50,9 +50,9 @@
50
50
  "jest": "^29",
51
51
  "ts-jest": "^29.1.0",
52
52
  "typescript": "^5",
53
- "@modern-js/server-core": "2.29.0",
54
- "@scripts/build": "2.29.0",
55
- "@scripts/jest-config": "2.29.0"
53
+ "@modern-js/server-core": "2.31.0",
54
+ "@scripts/build": "2.31.0",
55
+ "@scripts/jest-config": "2.31.0"
56
56
  },
57
57
  "sideEffects": false,
58
58
  "publishConfig": {