@atlaspack/packager-html 2.15.1 → 2.15.2
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 +12 -0
- package/lib/HTMLPackager.js +3 -0
- package/package.json +5 -5
- package/src/HTMLPackager.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaspack/packager-html
|
|
2
2
|
|
|
3
|
+
## 2.15.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#702](https://github.com/atlassian-labs/atlaspack/pull/702) [`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa) Thanks [@alshdavid](https://github.com/alshdavid)! - Fixes to Flow types
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa), [`1c7865a`](https://github.com/atlassian-labs/atlaspack/commit/1c7865a64451116d94015e248302435839d347c0), [`a0b959f`](https://github.com/atlassian-labs/atlaspack/commit/a0b959fbf61fc3f820ff03c7e8988945fe40a91a)]:
|
|
10
|
+
- @atlaspack/plugin@2.14.20
|
|
11
|
+
- @atlaspack/feature-flags@2.19.2
|
|
12
|
+
- @atlaspack/utils@2.17.2
|
|
13
|
+
- @atlaspack/types@2.15.10
|
|
14
|
+
|
|
3
15
|
## 2.15.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/lib/HTMLPackager.js
CHANGED
|
@@ -88,7 +88,10 @@ var _default = exports.default = new (_plugin().Packager)({
|
|
|
88
88
|
let referencedBundles = [...(0, _utils().setSymmetricDifference)(new Set(referencedBundlesRecursive), new Set(bundleGraph.getReferencedBundles(bundle, {
|
|
89
89
|
recursive: false
|
|
90
90
|
})))];
|
|
91
|
+
|
|
92
|
+
// $FlowFixMe
|
|
91
93
|
let conditionalBundles = config.evaluateRootConditionalBundles ? (0, _utils().setDifference)(getReferencedConditionalScripts(bundleGraph, referencedBundlesRecursive), new Set(referencedBundles)) : new Set();
|
|
94
|
+
// $FlowFixMe
|
|
92
95
|
let renderConfig = config === null || config === void 0 ? void 0 : config.render;
|
|
93
96
|
let {
|
|
94
97
|
html
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/packager-html",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.2",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"node": ">= 16.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@atlaspack/plugin": "2.14.
|
|
19
|
-
"@atlaspack/types": "2.15.
|
|
20
|
-
"@atlaspack/utils": "2.17.
|
|
21
|
-
"@atlaspack/feature-flags": "2.19.
|
|
18
|
+
"@atlaspack/plugin": "2.14.20",
|
|
19
|
+
"@atlaspack/types": "2.15.10",
|
|
20
|
+
"@atlaspack/utils": "2.17.2",
|
|
21
|
+
"@atlaspack/feature-flags": "2.19.2",
|
|
22
22
|
"nullthrows": "^1.1.1",
|
|
23
23
|
"posthtml": "^0.16.5"
|
|
24
24
|
},
|
package/src/HTMLPackager.js
CHANGED
|
@@ -75,6 +75,7 @@ export default (new Packager({
|
|
|
75
75
|
),
|
|
76
76
|
];
|
|
77
77
|
|
|
78
|
+
// $FlowFixMe
|
|
78
79
|
let conditionalBundles = config.evaluateRootConditionalBundles
|
|
79
80
|
? setDifference(
|
|
80
81
|
getReferencedConditionalScripts(
|
|
@@ -84,6 +85,7 @@ export default (new Packager({
|
|
|
84
85
|
new Set(referencedBundles),
|
|
85
86
|
)
|
|
86
87
|
: new Set();
|
|
88
|
+
// $FlowFixMe
|
|
87
89
|
let renderConfig = config?.render;
|
|
88
90
|
|
|
89
91
|
let {html} = await posthtml([
|
|
@@ -121,7 +123,7 @@ export default (new Packager({
|
|
|
121
123
|
map,
|
|
122
124
|
});
|
|
123
125
|
},
|
|
124
|
-
}): Packager);
|
|
126
|
+
}): Packager<mixed, mixed>);
|
|
125
127
|
|
|
126
128
|
async function getAssetContent(
|
|
127
129
|
bundleGraph: BundleGraph<NamedBundle>,
|