@atlaspack/bundler-default 2.14.5-canary.171 → 2.14.5-canary.173
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/lib/MonolithicBundler.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "2.14.5-canary.173+f93000336",
|
|
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.
|
|
21
|
-
"@atlaspack/feature-flags": "2.14.1-canary.
|
|
22
|
-
"@atlaspack/graph": "3.4.1-canary.
|
|
23
|
-
"@atlaspack/plugin": "2.14.5-canary.
|
|
24
|
-
"@atlaspack/rust": "3.2.1-canary.
|
|
25
|
-
"@atlaspack/types-internal": "2.14.1-canary.
|
|
26
|
-
"@atlaspack/utils": "2.14.5-canary.
|
|
20
|
+
"@atlaspack/diagnostic": "2.14.1-canary.241+f93000336",
|
|
21
|
+
"@atlaspack/feature-flags": "2.14.1-canary.241+f93000336",
|
|
22
|
+
"@atlaspack/graph": "3.4.1-canary.241+f93000336",
|
|
23
|
+
"@atlaspack/plugin": "2.14.5-canary.173+f93000336",
|
|
24
|
+
"@atlaspack/rust": "3.2.1-canary.173+f93000336",
|
|
25
|
+
"@atlaspack/types-internal": "2.14.1-canary.241+f93000336",
|
|
26
|
+
"@atlaspack/utils": "2.14.5-canary.173+f93000336",
|
|
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": "
|
|
36
|
+
"gitHead": "f930003364fdc31e5487520ebe256f1a9389f579"
|
|
37
37
|
}
|
package/src/MonolithicBundler.ts
CHANGED
|
@@ -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({
|
|
21
|
+
let bundle = bundleGraph.createBundle({
|
|
22
|
+
entryAsset,
|
|
23
|
+
target,
|
|
24
|
+
needsStableName: getFeatureFlag('singleFileOutputStableName'),
|
|
25
|
+
});
|
|
20
26
|
|
|
21
27
|
bundleGraph.traverse(
|
|
22
28
|
(node, _, actions) => {
|