@modern-js/module-tools 1.5.6 → 1.5.7

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,25 @@
1
1
  # @modern-js/module-tools
2
2
 
3
+ ## 1.5.7
4
+
5
+ ### Patch Changes
6
+
7
+ - b7a1cea52: feat: support utils in tools.babel
8
+ - Updated dependencies [9377d2d9d]
9
+ - Updated dependencies [8e1cedd8a]
10
+ - Updated dependencies [8c9ad1749]
11
+ - Updated dependencies [b7a1cea52]
12
+ - Updated dependencies [1ac68424f]
13
+ - Updated dependencies [3dfee700c]
14
+ - @modern-js/core@1.12.0
15
+ - @modern-js/css-config@1.2.7
16
+ - @modern-js/style-compiler@1.2.10
17
+ - @modern-js/utils@1.7.7
18
+ - @modern-js/babel-preset-module@1.3.8
19
+ - @modern-js/plugin@1.3.7
20
+ - @modern-js/plugin-analyze@1.4.6
21
+ - @modern-js/plugin-changeset@1.2.8
22
+
3
23
  ## 1.5.6
4
24
 
5
25
  ### Patch Changes
@@ -4,7 +4,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- import { getBabelConfig } from '@modern-js/babel-preset-module';
7
+ import { getBabelConfig, applyUserBabelConfig } from '@modern-js/babel-preset-module';
8
8
  import { applyOptionsChain, getAlias, isUseSSRBundle } from '@modern-js/utils';
9
9
  export const getFinalAlias = (modernConfig, option) => {
10
10
  const aliasConfig = getAlias(modernConfig.source.alias, option); // 排除内部别名,因为不需要处理
@@ -73,5 +73,5 @@ export const resolveBabelConfig = (appDirectory, modernConfig, option) => {
73
73
 
74
74
  internalBabelConfig.compact = false;
75
75
  const userBabelConfig = modernConfig.tools.babel;
76
- return applyOptionsChain(internalBabelConfig, userBabelConfig);
76
+ return applyUserBabelConfig(internalBabelConfig, userBabelConfig);
77
77
  };
@@ -85,7 +85,7 @@ const resolveBabelConfig = (appDirectory, modernConfig, option) => {
85
85
 
86
86
  internalBabelConfig.compact = false;
87
87
  const userBabelConfig = modernConfig.tools.babel;
88
- return (0, _utils.applyOptionsChain)(internalBabelConfig, userBabelConfig);
88
+ return (0, _babelPresetModule.applyUserBabelConfig)(internalBabelConfig, userBabelConfig);
89
89
  };
90
90
 
91
91
  exports.resolveBabelConfig = resolveBabelConfig;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.5.6",
14
+ "version": "1.5.7",
15
15
  "bin": {
16
16
  "modern": "./bin/modern.js"
17
17
  },
@@ -55,17 +55,17 @@
55
55
  "@babel/traverse": "^7.18.0",
56
56
  "@babel/types": "^7.18.0",
57
57
  "@modern-js/babel-compiler": "^1.2.6",
58
- "@modern-js/babel-preset-module": "^1.3.7",
59
- "@modern-js/core": "^1.11.2",
60
- "@modern-js/css-config": "^1.2.6",
58
+ "@modern-js/babel-preset-module": "^1.3.8",
59
+ "@modern-js/core": "^1.12.0",
60
+ "@modern-js/css-config": "^1.2.7",
61
61
  "@modern-js/i18n-cli-language-detector": "^1.2.4",
62
62
  "@modern-js/new-action": "^1.3.10",
63
- "@modern-js/plugin": "^1.3.6",
63
+ "@modern-js/plugin": "^1.3.7",
64
64
  "@modern-js/plugin-analyze": "^1.4.6",
65
65
  "@modern-js/plugin-changeset": "^1.2.8",
66
66
  "@modern-js/plugin-i18n": "^1.2.7",
67
- "@modern-js/style-compiler": "^1.2.9",
68
- "@modern-js/utils": "^1.7.6",
67
+ "@modern-js/style-compiler": "^1.2.10",
68
+ "@modern-js/utils": "^1.7.7",
69
69
  "normalize-path": "^3.0.0",
70
70
  "p-map": "^4",
71
71
  "process.argv": "^0.6.0"