@atlaspack/bundler-default 2.14.5-canary.61 → 2.14.5-canary.63

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +104 -0
  2. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,109 @@
1
1
  # @atlaspack/bundler-default
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#600](https://github.com/atlassian-labs/atlaspack/pull/600) [`1b52b99`](https://github.com/atlassian-labs/atlaspack/commit/1b52b99db4298b04c1a6eb0f97994d75a2d436f9) Thanks [@mattcompiles](https://github.com/mattcompiles)! - ### Breaking change
8
+
9
+ This new config replaces the previously released `sharedBundleMergeThreshold`.
10
+
11
+ The following options are available for each merge group.
12
+
13
+ ### Options
14
+
15
+ #### overlapThreshold
16
+
17
+ > The same as `sharedBundleMergeThreshold` from #535
18
+
19
+ Merge bundles share a percentage of source bundles
20
+
21
+ ```json
22
+ "@atlaspack/bundler-default": {
23
+ "sharedBundleMerge": [{
24
+ "overlapThreshold": 0.75
25
+ }]
26
+ }
27
+ ```
28
+
29
+ #### maxBundleSize
30
+
31
+ Merge bundles that are smaller than a configured amount of bytes.
32
+
33
+ > Keep in mind these bytes are pre-optimisation
34
+
35
+ ```json
36
+ "@atlaspack/bundler-default": {
37
+ "sharedBundleMerge": [{
38
+ "maxBundleSize": 20000
39
+ }]
40
+ }
41
+ ```
42
+
43
+ #### sourceBundles
44
+
45
+ Merge bundles that share a set of source bundles. The matching is relative to the project root, like how manual shared bundle roots work.
46
+
47
+ ```json
48
+ "@atlaspack/bundler-default": {
49
+ "sharedBundleMerge": [{
50
+ "sourceBundles": ["src/important-route", "src/important-route-2"]
51
+ }]
52
+ }
53
+ ```
54
+
55
+ #### minBundlesInGroup
56
+
57
+ Merge bundles that belong to a bundle group that's larger than a set amount. This is useful for targetting bundles that would be deleted by the `maxParallelRequests` option.
58
+
59
+ ```json
60
+ "@atlaspack/bundler-default": {
61
+ "maxParallelRequests": 30,
62
+ "sharedBundleMerge": [{
63
+ "minBundlesInGroup": 30
64
+ }]
65
+ }
66
+ ```
67
+
68
+ ## Combining options
69
+
70
+ When multiple options are provided, all must be true for a merge to be relevant.
71
+
72
+ For example, merge bundles that are smaller than 20kb and share at least 50% of the same source bundles.
73
+
74
+ ```json
75
+ "@atlaspack/bundler-default": {
76
+ "sharedBundleMerge": [{
77
+ "overlapThreshold": 0.5,
78
+ "maxBundleSize": 20000
79
+ }]
80
+ }
81
+ ```
82
+
83
+ ## Multiple merges
84
+
85
+ You can also have multiple merge configs.
86
+
87
+ ```json
88
+ "@atlaspack/bundler-default": {
89
+ "sharedBundleMerge": [
90
+ {
91
+ "overlapThreshold": 0.75,
92
+ "maxBundleSize": 20000
93
+ },
94
+ {
95
+ "minBundlesInGroup": 30
96
+ "sourceBundles": ["src/important-route", "src/important-route-2"]
97
+ }
98
+ ]
99
+ }
100
+ ```
101
+
102
+ ### Patch Changes
103
+
104
+ - Updated dependencies [[`1b52b99`](https://github.com/atlassian-labs/atlaspack/commit/1b52b99db4298b04c1a6eb0f97994d75a2d436f9)]:
105
+ - @atlaspack/graph@3.5.0
106
+
3
107
  ## 2.16.3
4
108
 
5
109
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/bundler-default",
3
- "version": "2.14.5-canary.61+1b52b99db",
3
+ "version": "2.14.5-canary.63+471b99e41",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "type": "commonjs",
6
6
  "publishConfig": {
@@ -16,14 +16,14 @@
16
16
  "node": ">= 16.0.0"
17
17
  },
18
18
  "dependencies": {
19
- "@atlaspack/diagnostic": "2.14.1-canary.129+1b52b99db",
20
- "@atlaspack/feature-flags": "2.14.1-canary.129+1b52b99db",
21
- "@atlaspack/graph": "3.4.1-canary.129+1b52b99db",
22
- "@atlaspack/plugin": "2.14.5-canary.61+1b52b99db",
23
- "@atlaspack/rust": "3.2.1-canary.61+1b52b99db",
24
- "@atlaspack/utils": "2.14.5-canary.61+1b52b99db",
25
- "many-keys-map": "^2.0.1",
19
+ "@atlaspack/diagnostic": "2.14.1-canary.131+471b99e41",
20
+ "@atlaspack/feature-flags": "2.14.1-canary.131+471b99e41",
21
+ "@atlaspack/graph": "3.4.1-canary.131+471b99e41",
22
+ "@atlaspack/plugin": "2.14.5-canary.63+471b99e41",
23
+ "@atlaspack/rust": "3.2.1-canary.63+471b99e41",
24
+ "@atlaspack/utils": "2.14.5-canary.63+471b99e41",
25
+ "many-keys-map": "^1.0.3",
26
26
  "nullthrows": "^1.1.1"
27
27
  },
28
- "gitHead": "1b52b99db4298b04c1a6eb0f97994d75a2d436f9"
28
+ "gitHead": "471b99e41b4d97328c88f65e90bea284372cb1b0"
29
29
  }