@modern-js/app-tools 1.8.4 → 1.15.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,34 @@
|
|
|
1
1
|
# @modern-js/app-tools
|
|
2
2
|
|
|
3
|
+
## 1.15.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d85a20d: fix(app-tools): should not modify entry when using disableDefaultEntries
|
|
8
|
+
|
|
9
|
+
fix(app-tools): 修复开启 disableDefaultEntries 后 entry 名称被修改的问题
|
|
10
|
+
|
|
11
|
+
- 37cd159: feat(webpack): log more detailed error messages
|
|
12
|
+
- Updated dependencies [8658a78]
|
|
13
|
+
- Updated dependencies [0df4970]
|
|
14
|
+
- Updated dependencies [05d4a4f]
|
|
15
|
+
- Updated dependencies [b1f7000]
|
|
16
|
+
- Updated dependencies [ad05af9]
|
|
17
|
+
- Updated dependencies [5d53d1c]
|
|
18
|
+
- Updated dependencies [c087148]
|
|
19
|
+
- Updated dependencies [37cd159]
|
|
20
|
+
- @modern-js/utils@1.15.0
|
|
21
|
+
- @modern-js/webpack@1.15.0
|
|
22
|
+
- @modern-js/server@1.15.0
|
|
23
|
+
- @modern-js/types@1.15.0
|
|
24
|
+
- @modern-js/prod-server@1.15.0
|
|
25
|
+
- @modern-js/new-action@1.15.0
|
|
26
|
+
- @modern-js/core@1.15.0
|
|
27
|
+
- @modern-js/plugin-i18n@1.15.0
|
|
28
|
+
- @modern-js/plugin-jarvis@1.15.0
|
|
29
|
+
- @modern-js/node-bundle-require@1.15.0
|
|
30
|
+
- @modern-js/plugin@1.15.0
|
|
31
|
+
|
|
3
32
|
## 1.8.4
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
|
@@ -59,14 +59,17 @@ export const getBundleEntry = (appContext, config) => {
|
|
|
59
59
|
defaults.push(entrypoint);
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
-
}
|
|
62
|
+
}
|
|
63
63
|
|
|
64
|
+
if (!disableDefaultEntries) {
|
|
65
|
+
// find main entry point which server route is '/'.
|
|
66
|
+
const entriesDirAbs = ensureAbsolutePath(appDirectory, entriesDir);
|
|
67
|
+
const found = defaults.find(({
|
|
68
|
+
entryName,
|
|
69
|
+
entry
|
|
70
|
+
}) => entryName === packageName || path.dirname(entry) === entriesDirAbs);
|
|
71
|
+
found && (found.entryName = MAIN_ENTRY_NAME);
|
|
72
|
+
}
|
|
64
73
|
|
|
65
|
-
const entriesDirAbs = ensureAbsolutePath(appDirectory, entriesDir);
|
|
66
|
-
const found = defaults.find(({
|
|
67
|
-
entryName,
|
|
68
|
-
entry
|
|
69
|
-
}) => entryName === packageName || path.dirname(entry) === entriesDirAbs);
|
|
70
|
-
found && (found.entryName = MAIN_ENTRY_NAME);
|
|
71
74
|
return defaults;
|
|
72
75
|
};
|
|
@@ -24,10 +24,7 @@ export const createCompiler = async ({
|
|
|
24
24
|
});
|
|
25
25
|
compiler.hooks.done.tap('done', async stats => {
|
|
26
26
|
const statsData = stats.toJson({
|
|
27
|
-
|
|
28
|
-
warnings: true,
|
|
29
|
-
errors: true,
|
|
30
|
-
timings: true
|
|
27
|
+
preset: 'errors-warnings'
|
|
31
28
|
});
|
|
32
29
|
const {
|
|
33
30
|
errors,
|
|
@@ -71,15 +71,18 @@ const getBundleEntry = (appContext, config) => {
|
|
|
71
71
|
defaults.push(entrypoint);
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
|
-
}
|
|
74
|
+
}
|
|
75
75
|
|
|
76
|
+
if (!disableDefaultEntries) {
|
|
77
|
+
// find main entry point which server route is '/'.
|
|
78
|
+
const entriesDirAbs = (0, _utils.ensureAbsolutePath)(appDirectory, entriesDir);
|
|
79
|
+
const found = defaults.find(({
|
|
80
|
+
entryName,
|
|
81
|
+
entry
|
|
82
|
+
}) => entryName === packageName || _path.default.dirname(entry) === entriesDirAbs);
|
|
83
|
+
found && (found.entryName = _utils.MAIN_ENTRY_NAME);
|
|
84
|
+
}
|
|
76
85
|
|
|
77
|
-
const entriesDirAbs = (0, _utils.ensureAbsolutePath)(appDirectory, entriesDir);
|
|
78
|
-
const found = defaults.find(({
|
|
79
|
-
entryName,
|
|
80
|
-
entry
|
|
81
|
-
}) => entryName === packageName || _path.default.dirname(entry) === entriesDirAbs);
|
|
82
|
-
found && (found.entryName = _utils.MAIN_ENTRY_NAME);
|
|
83
86
|
return defaults;
|
|
84
87
|
};
|
|
85
88
|
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.15.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -56,26 +56,26 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@babel/runtime": "^7.18.0",
|
|
59
|
-
"@modern-js/core": "
|
|
60
|
-
"@modern-js/new-action": "
|
|
61
|
-
"@modern-js/node-bundle-require": "
|
|
62
|
-
"@modern-js/plugin": "
|
|
63
|
-
"@modern-js/plugin-i18n": "
|
|
64
|
-
"@modern-js/plugin-jarvis": "
|
|
65
|
-
"@modern-js/prod-server": "
|
|
66
|
-
"@modern-js/server": "
|
|
67
|
-
"@modern-js/types": "
|
|
68
|
-
"@modern-js/utils": "
|
|
69
|
-
"@modern-js/webpack": "
|
|
59
|
+
"@modern-js/core": "1.15.0",
|
|
60
|
+
"@modern-js/new-action": "1.15.0",
|
|
61
|
+
"@modern-js/node-bundle-require": "1.15.0",
|
|
62
|
+
"@modern-js/plugin": "1.15.0",
|
|
63
|
+
"@modern-js/plugin-i18n": "1.15.0",
|
|
64
|
+
"@modern-js/plugin-jarvis": "1.15.0",
|
|
65
|
+
"@modern-js/prod-server": "1.15.0",
|
|
66
|
+
"@modern-js/server": "1.15.0",
|
|
67
|
+
"@modern-js/types": "1.15.0",
|
|
68
|
+
"@modern-js/utils": "1.15.0",
|
|
69
|
+
"@modern-js/webpack": "1.15.0",
|
|
70
70
|
"@babel/parser": "^7.18.0",
|
|
71
71
|
"@babel/traverse": "^7.18.0",
|
|
72
72
|
"@babel/types": "^7.18.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@modern-js/server-core": "1.
|
|
75
|
+
"@modern-js/server-core": "1.15.0",
|
|
76
76
|
"@types/babel__traverse": "^7.14.2",
|
|
77
|
-
"@scripts/build": "
|
|
78
|
-
"@scripts/jest-config": "
|
|
77
|
+
"@scripts/build": "1.15.0",
|
|
78
|
+
"@scripts/jest-config": "1.15.0",
|
|
79
79
|
"@types/jest": "^27",
|
|
80
80
|
"@types/node": "^14",
|
|
81
81
|
"@types/react": "^17",
|