@atlaspack/bundler-default 2.14.5-canary.171 → 2.14.5-canary.172

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.
@@ -4,6 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.addJSMonolithBundle = addJSMonolithBundle;
7
+ function _featureFlags() {
8
+ const data = require("@atlaspack/feature-flags");
9
+ _featureFlags = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
7
14
  function _nullthrows() {
8
15
  const data = _interopRequireDefault(require("nullthrows"));
9
16
  _nullthrows = function () {
@@ -18,7 +25,8 @@ function addJSMonolithBundle(bundleGraph, entryAsset, entryDep) {
18
25
  // Create a single bundle to hold all JS assets
19
26
  let bundle = bundleGraph.createBundle({
20
27
  entryAsset,
21
- target
28
+ target,
29
+ needsStableName: (0, _featureFlags().getFeatureFlag)('singleFileOutputStableName')
22
30
  });
23
31
  bundleGraph.traverse((node, _, actions) => {
24
32
  // JS assets can be added to the bundle, but the rest are ignored
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/bundler-default",
3
- "version": "2.14.5-canary.171+f0349a6b9",
3
+ "version": "2.14.5-canary.172+88439807b",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "type": "commonjs",
6
6
  "publishConfig": {
@@ -17,13 +17,13 @@
17
17
  "node": ">= 16.0.0"
18
18
  },
19
19
  "dependencies": {
20
- "@atlaspack/diagnostic": "2.14.1-canary.239+f0349a6b9",
21
- "@atlaspack/feature-flags": "2.14.1-canary.239+f0349a6b9",
22
- "@atlaspack/graph": "3.4.1-canary.239+f0349a6b9",
23
- "@atlaspack/plugin": "2.14.5-canary.171+f0349a6b9",
24
- "@atlaspack/rust": "3.2.1-canary.171+f0349a6b9",
25
- "@atlaspack/types-internal": "2.14.1-canary.239+f0349a6b9",
26
- "@atlaspack/utils": "2.14.5-canary.171+f0349a6b9",
20
+ "@atlaspack/diagnostic": "2.14.1-canary.240+88439807b",
21
+ "@atlaspack/feature-flags": "2.14.1-canary.240+88439807b",
22
+ "@atlaspack/graph": "3.4.1-canary.240+88439807b",
23
+ "@atlaspack/plugin": "2.14.5-canary.172+88439807b",
24
+ "@atlaspack/rust": "3.2.1-canary.172+88439807b",
25
+ "@atlaspack/types-internal": "2.14.1-canary.240+88439807b",
26
+ "@atlaspack/utils": "2.14.5-canary.172+88439807b",
27
27
  "@types/sorted-array-functions": "^1.0.0",
28
28
  "many-keys-map": "^1.0.3",
29
29
  "nullthrows": "^1.1.1",
@@ -33,5 +33,5 @@
33
33
  "check-ts": "tsc --emitDeclarationOnly --rootDir src",
34
34
  "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
35
35
  },
36
- "gitHead": "f0349a6b9b04755088f121095ca6301a2ada3767"
36
+ "gitHead": "88439807be20025fd3433380204ff1205079729e"
37
37
  }
@@ -3,6 +3,8 @@ import type {
3
3
  Dependency,
4
4
  MutableBundleGraph,
5
5
  } from '@atlaspack/types-internal';
6
+ import {getFeatureFlag} from '@atlaspack/feature-flags';
7
+
6
8
  import nullthrows from 'nullthrows';
7
9
 
8
10
  export function addJSMonolithBundle(
@@ -16,7 +18,11 @@ export function addJSMonolithBundle(
16
18
  );
17
19
 
18
20
  // Create a single bundle to hold all JS assets
19
- let bundle = bundleGraph.createBundle({entryAsset, target});
21
+ let bundle = bundleGraph.createBundle({
22
+ entryAsset,
23
+ target,
24
+ needsStableName: getFeatureFlag('singleFileOutputStableName'),
25
+ });
20
26
 
21
27
  bundleGraph.traverse(
22
28
  (node, _, actions) => {