@atlaspack/packager-html 2.14.18-noselfbuild-4bb690920.0 → 2.14.18-noselfbuild-8163359c1.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.
@@ -46,13 +46,6 @@ function _nullthrows() {
46
46
  };
47
47
  return data;
48
48
  }
49
- function _featureFlags() {
50
- const data = require("@atlaspack/feature-flags");
51
- _featureFlags = function () {
52
- return data;
53
- };
54
- return data;
55
- }
56
49
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
57
50
  // https://www.w3.org/TR/html5/dom.html#metadata-content-2
58
51
  const metadataContent = new Set(['base', 'link', 'meta', 'noscript',
@@ -95,7 +88,7 @@ var _default = exports.default = new (_plugin().Packager)({
95
88
  let referencedBundles = [...(0, _utils().setSymmetricDifference)(new Set(referencedBundlesRecursive), new Set(bundleGraph.getReferencedBundles(bundle, {
96
89
  recursive: false
97
90
  })))];
98
- let conditionalBundles = config.evaluateRootConditionalBundles ? (0, _featureFlags().getFeatureFlag)('condbHtmlPackagerChange') ? (0, _utils().setDifference)(getReferencedConditionalScripts(bundleGraph, referencedBundlesRecursive), new Set(referencedBundles)) : (0, _utils().setDifference)(new Set([...referencedBundlesRecursive.flatMap(referencedBundle => bundleGraph.getReferencedConditionalBundles(referencedBundle))]), new Set(referencedBundles)) : new Set();
91
+ let conditionalBundles = config.evaluateRootConditionalBundles ? (0, _utils().setDifference)(getReferencedConditionalScripts(bundleGraph, referencedBundlesRecursive), new Set(referencedBundles)) : new Set();
99
92
  let renderConfig = config === null || config === void 0 ? void 0 : config.render;
100
93
  let {
101
94
  html
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/packager-html",
3
- "version": "2.14.18-noselfbuild-4bb690920.0",
3
+ "version": "2.14.18-noselfbuild-8163359c1.0",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,13 +15,13 @@
15
15
  "node": ">= 16.0.0"
16
16
  },
17
17
  "dependencies": {
18
- "@atlaspack/feature-flags": "2.18.5-noselfbuild-4bb690920.0",
19
- "@atlaspack/plugin": "2.14.18-noselfbuild-4bb690920.0",
20
- "@atlaspack/types": "2.15.8-noselfbuild-4bb690920.0",
21
- "@atlaspack/utils": "2.16.2-noselfbuild-4bb690920.0",
18
+ "@atlaspack/feature-flags": "2.18.5-noselfbuild-8163359c1.0",
19
+ "@atlaspack/plugin": "2.14.18-noselfbuild-8163359c1.0",
20
+ "@atlaspack/types": "2.15.8-noselfbuild-8163359c1.0",
21
+ "@atlaspack/utils": "2.16.2-noselfbuild-8163359c1.0",
22
22
  "nullthrows": "^1.1.1",
23
23
  "posthtml": "^0.16.5"
24
24
  },
25
25
  "type": "commonjs",
26
- "gitHead": "4bb6909209274bcb035c760d7955c686f81f9322"
26
+ "gitHead": "8163359c1a8d316bfd4ca81f9f13f94bc5963fe9"
27
27
  }
@@ -13,7 +13,6 @@ import {
13
13
  urlJoin,
14
14
  } from '@atlaspack/utils';
15
15
  import nullthrows from 'nullthrows';
16
- import {getFeatureFlag} from '@atlaspack/feature-flags';
17
16
 
18
17
  // https://www.w3.org/TR/html5/dom.html#metadata-content-2
19
18
  const metadataContent = new Set([
@@ -77,22 +76,13 @@ export default (new Packager({
77
76
  ];
78
77
 
79
78
  let conditionalBundles = config.evaluateRootConditionalBundles
80
- ? getFeatureFlag('condbHtmlPackagerChange')
81
- ? setDifference(
82
- getReferencedConditionalScripts(
83
- bundleGraph,
84
- referencedBundlesRecursive,
85
- ),
86
- new Set(referencedBundles),
87
- )
88
- : setDifference(
89
- new Set([
90
- ...referencedBundlesRecursive.flatMap((referencedBundle) =>
91
- bundleGraph.getReferencedConditionalBundles(referencedBundle),
92
- ),
93
- ]),
94
- new Set(referencedBundles),
95
- )
79
+ ? setDifference(
80
+ getReferencedConditionalScripts(
81
+ bundleGraph,
82
+ referencedBundlesRecursive,
83
+ ),
84
+ new Set(referencedBundles),
85
+ )
96
86
  : new Set();
97
87
  let renderConfig = config?.render;
98
88