@next-core/build-config-factory 2.23.29 → 2.23.30
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 +11 -0
- package/package.json +2 -2
- package/src/size-limit.js +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.23.30](https://github.com/easyops-cn/next-core/compare/@next-core/build-config-factory@2.23.29...@next-core/build-config-factory@2.23.30) (2022-10-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **size-limit:** support size-limit of chunks and workers ([4394c4f](https://github.com/easyops-cn/next-core/commit/4394c4fb610e79927f8880779412464046712933))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.23.29](https://github.com/easyops-cn/next-core/compare/@next-core/build-config-factory@2.23.28...@next-core/build-config-factory@2.23.29) (2022-10-09)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @next-core/build-config-factory
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/build-config-factory",
|
|
3
|
-
"version": "2.23.
|
|
3
|
+
"version": "2.23.30",
|
|
4
4
|
"description": "build config factory",
|
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-core/tree/master/packages/build-config-factory",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"typedoc": "^0.19.2",
|
|
38
38
|
"typedoc-plugin-no-inherit": "^1.2.2"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "87cc208d7ee1ebd9b5e5ec5a1e537f2fd076b9cf"
|
|
41
41
|
}
|
package/src/size-limit.js
CHANGED
|
@@ -13,6 +13,10 @@ function getPath(type, pkg) {
|
|
|
13
13
|
return `bricks/${pkg}/dist/editors/editors.*.js`;
|
|
14
14
|
case "lazyBricks":
|
|
15
15
|
return `bricks/${pkg}/dist/lazy-bricks/**/*.js`;
|
|
16
|
+
case "chunks":
|
|
17
|
+
return `bricks/${pkg}/dist/chunks/**/*.js`;
|
|
18
|
+
case "workers":
|
|
19
|
+
return `bricks/${pkg}/dist/workers/**/*.js`;
|
|
16
20
|
default:
|
|
17
21
|
throw new Error(`Invalid size-limit type: ${type}`);
|
|
18
22
|
}
|
|
@@ -24,7 +28,7 @@ module.exports = function (sizeLimitJson) {
|
|
|
24
28
|
|
|
25
29
|
dirMap.forEach((conf, type) => {
|
|
26
30
|
const pkgMap = new Map(Object.entries(conf));
|
|
27
|
-
const dir = type === "
|
|
31
|
+
const dir = type === "templates" || type === "libs" ? type : "bricks";
|
|
28
32
|
|
|
29
33
|
if (!pkgMap.has("*")) {
|
|
30
34
|
throw new Error(`'*' is required for ${type}`);
|