@atlaspack/packager-js 2.14.5-canary.136 → 2.14.5-canary.137

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.
@@ -187,10 +187,14 @@ class ScopeHoistingPackager {
187
187
  if (this.isAsyncBundle) {
188
188
  // In async bundles we don't want the main entry to execute until we require it
189
189
  // as there might be dependencies in a sibling bundle that hasn't loaded yet.
190
- entries = entries.filter(a => {
191
- var _mainEntry;
192
- return a.id !== ((_mainEntry = mainEntry) === null || _mainEntry === void 0 ? void 0 : _mainEntry.id);
193
- });
190
+ if ((0, _featureFlags().getFeatureFlag)('supportWebpackChunkName')) {
191
+ entries = [];
192
+ } else {
193
+ entries = entries.filter(a => {
194
+ var _mainEntry;
195
+ return a.id !== ((_mainEntry = mainEntry) === null || _mainEntry === void 0 ? void 0 : _mainEntry.id);
196
+ });
197
+ }
194
198
  mainEntry = null;
195
199
  }
196
200
  let needsBundleQueue = this.shouldBundleQueue(this.bundle);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/packager-js",
3
- "version": "2.14.5-canary.136+d90b6d22d",
3
+ "version": "2.14.5-canary.137+069de478e",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,17 +15,17 @@
15
15
  "node": ">= 16.0.0"
16
16
  },
17
17
  "dependencies": {
18
- "@atlaspack/diagnostic": "2.14.1-canary.204+d90b6d22d",
19
- "@atlaspack/feature-flags": "2.14.1-canary.204+d90b6d22d",
20
- "@atlaspack/plugin": "2.14.5-canary.136+d90b6d22d",
21
- "@atlaspack/rust": "3.2.1-canary.136+d90b6d22d",
22
- "@atlaspack/types": "2.14.5-canary.136+d90b6d22d",
23
- "@atlaspack/utils": "2.14.5-canary.136+d90b6d22d",
18
+ "@atlaspack/diagnostic": "2.14.1-canary.205+069de478e",
19
+ "@atlaspack/feature-flags": "2.14.1-canary.205+069de478e",
20
+ "@atlaspack/plugin": "2.14.5-canary.137+069de478e",
21
+ "@atlaspack/rust": "3.2.1-canary.137+069de478e",
22
+ "@atlaspack/types": "2.14.5-canary.137+069de478e",
23
+ "@atlaspack/utils": "2.14.5-canary.137+069de478e",
24
24
  "@parcel/source-map": "^2.1.1",
25
25
  "globals": "^13.2.0",
26
26
  "nullthrows": "^1.1.1",
27
27
  "outdent": "^0.8.0"
28
28
  },
29
29
  "type": "commonjs",
30
- "gitHead": "d90b6d22db4f44b6831c33933ddd31d4a77800a6"
30
+ "gitHead": "069de478e64fb5889f6f2ce023eb510782767fbd"
31
31
  }
@@ -210,7 +210,11 @@ export class ScopeHoistingPackager {
210
210
  if (this.isAsyncBundle) {
211
211
  // In async bundles we don't want the main entry to execute until we require it
212
212
  // as there might be dependencies in a sibling bundle that hasn't loaded yet.
213
- entries = entries.filter((a) => a.id !== mainEntry?.id);
213
+ if (getFeatureFlag('supportWebpackChunkName')) {
214
+ entries = [];
215
+ } else {
216
+ entries = entries.filter((a) => a.id !== mainEntry?.id);
217
+ }
214
218
  mainEntry = null;
215
219
  }
216
220