@modern-js/module-tools 1.6.3 → 1.7.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 +31 -0
- package/dist/js/modern/features/build/bundle/runRollup.js +1 -1
- package/dist/js/modern/index.js +1 -2
- package/dist/js/modern/utils/language.js +1 -1
- package/dist/js/node/features/build/bundle/runRollup.js +1 -1
- package/dist/js/node/index.js +1 -3
- package/dist/js/node/utils/language.js +1 -1
- package/package.json +6 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @modern-js/module-tools
|
|
2
2
|
|
|
3
|
+
## 1.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 33cebd2: chore(plugin-i18n): merge `@modern-js/i18n-cli-language-detector` to `@modern-js/plugin-i18n`
|
|
8
|
+
|
|
9
|
+
chore(plugin-i18n): 合并 `@modern-js/i18n-cli-language-detector` 包到 `@modern-js/plugin-i18n` 包作为子路径
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 307ce36: fix: ignore cjs and mjs in d.ts bundle
|
|
14
|
+
|
|
15
|
+
fix: 对 d.ts 做 bundle 时忽略 cjs 和 mjs 资源
|
|
16
|
+
|
|
17
|
+
- f6681f2: feat: remove @modern-js/plugin-analyze plugin
|
|
18
|
+
feat: 移除 @modern-js/plugin-analyze 插件
|
|
19
|
+
- Updated dependencies [33cebd2]
|
|
20
|
+
- Updated dependencies [33cebd2]
|
|
21
|
+
- Updated dependencies [33cebd2]
|
|
22
|
+
- Updated dependencies [2e8ea92]
|
|
23
|
+
- Updated dependencies [74e74ee]
|
|
24
|
+
- Updated dependencies [33cebd2]
|
|
25
|
+
- @modern-js/core@1.13.0
|
|
26
|
+
- @modern-js/plugin-changeset@1.4.0
|
|
27
|
+
- @modern-js/plugin-i18n@1.3.0
|
|
28
|
+
- @modern-js/new-action@1.3.12
|
|
29
|
+
- @modern-js/babel-preset-module@1.4.0
|
|
30
|
+
- @modern-js/css-config@1.2.8
|
|
31
|
+
- @modern-js/plugin-jarvis@1.2.14
|
|
32
|
+
- @modern-js/utils@1.7.12
|
|
33
|
+
|
|
3
34
|
## 1.6.3
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
package/dist/js/modern/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Import } from '@modern-js/utils';
|
|
2
2
|
import ChangesetPlugin from '@modern-js/plugin-changeset';
|
|
3
|
-
import AnalyzePlugin from '@modern-js/plugin-analyze';
|
|
4
3
|
import LintPlugin from '@modern-js/plugin-jarvis';
|
|
5
4
|
import { hooks } from "./hooks";
|
|
6
5
|
export * from "./types";
|
|
@@ -14,7 +13,7 @@ export default (() => ({
|
|
|
14
13
|
name: '@modern-js/module-tools',
|
|
15
14
|
post: ['@modern-js/plugin-analyze', '@modern-js/plugin-changeset'],
|
|
16
15
|
registerHook: hooks,
|
|
17
|
-
usePlugins:
|
|
16
|
+
usePlugins: isBuildMode ? [] : [ChangesetPlugin(), LintPlugin()],
|
|
18
17
|
setup: api => {
|
|
19
18
|
const locale = lang.getLocaleLanguage();
|
|
20
19
|
local.i18n.changeLanguage({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Import } from '@modern-js/utils';
|
|
2
|
-
const i18n = Import.lazy('@modern-js/i18n
|
|
2
|
+
const i18n = Import.lazy('@modern-js/plugin-i18n/language-detector', require);
|
|
3
3
|
export function getLocaleLanguage() {
|
|
4
4
|
const detector = new i18n.I18CLILanguageDetector();
|
|
5
5
|
return detector.detect();
|
package/dist/js/node/index.js
CHANGED
|
@@ -18,8 +18,6 @@ var _utils = require("@modern-js/utils");
|
|
|
18
18
|
|
|
19
19
|
var _pluginChangeset = _interopRequireDefault(require("@modern-js/plugin-changeset"));
|
|
20
20
|
|
|
21
|
-
var _pluginAnalyze = _interopRequireDefault(require("@modern-js/plugin-analyze"));
|
|
22
|
-
|
|
23
21
|
var _pluginJarvis = _interopRequireDefault(require("@modern-js/plugin-jarvis"));
|
|
24
22
|
|
|
25
23
|
var _hooks = require("./hooks");
|
|
@@ -56,7 +54,7 @@ var _default = () => ({
|
|
|
56
54
|
name: '@modern-js/module-tools',
|
|
57
55
|
post: ['@modern-js/plugin-analyze', '@modern-js/plugin-changeset'],
|
|
58
56
|
registerHook: _hooks.hooks,
|
|
59
|
-
usePlugins:
|
|
57
|
+
usePlugins: isBuildMode ? [] : [(0, _pluginChangeset.default)(), (0, _pluginJarvis.default)()],
|
|
60
58
|
setup: api => {
|
|
61
59
|
const locale = lang.getLocaleLanguage();
|
|
62
60
|
local.i18n.changeLanguage({
|
|
@@ -7,7 +7,7 @@ exports.getLocaleLanguage = getLocaleLanguage;
|
|
|
7
7
|
|
|
8
8
|
var _utils = require("@modern-js/utils");
|
|
9
9
|
|
|
10
|
-
const i18n = _utils.Import.lazy('@modern-js/i18n
|
|
10
|
+
const i18n = _utils.Import.lazy('@modern-js/plugin-i18n/language-detector', require);
|
|
11
11
|
|
|
12
12
|
function getLocaleLanguage() {
|
|
13
13
|
const detector = new i18n.I18CLILanguageDetector();
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.7.0",
|
|
15
15
|
"bin": {
|
|
16
16
|
"modern": "./bin/modern.js"
|
|
17
17
|
},
|
|
@@ -55,15 +55,13 @@
|
|
|
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.
|
|
59
|
-
"@modern-js/core": "^1.
|
|
58
|
+
"@modern-js/babel-preset-module": "^1.4.0",
|
|
59
|
+
"@modern-js/core": "^1.13.0",
|
|
60
60
|
"@modern-js/css-config": "^1.2.8",
|
|
61
|
-
"@modern-js/
|
|
62
|
-
"@modern-js/new-action": "^1.3.11",
|
|
61
|
+
"@modern-js/new-action": "^1.3.12",
|
|
63
62
|
"@modern-js/plugin": "^1.4.2",
|
|
64
|
-
"@modern-js/plugin-
|
|
65
|
-
"@modern-js/plugin-
|
|
66
|
-
"@modern-js/plugin-i18n": "^1.2.7",
|
|
63
|
+
"@modern-js/plugin-changeset": "^1.4.0",
|
|
64
|
+
"@modern-js/plugin-i18n": "^1.3.0",
|
|
67
65
|
"@modern-js/plugin-jarvis": "^1.2.14",
|
|
68
66
|
"@modern-js/style-compiler": "^1.2.13",
|
|
69
67
|
"@modern-js/utils": "^1.7.12",
|