@atlaspack/core 2.12.1-canary.3531 → 2.12.1-canary.3534

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.
@@ -204,10 +204,10 @@ class BundleGraph {
204
204
  // Asset is in the same bundle
205
205
  return [asset, []];
206
206
  }
207
- const resolvedAsync = (0, _nullthrows().default)(this.#graph.resolveAsyncDependency(dep, (0, _Bundle.bundleToInternalBundle)(bundle)));
207
+ const resolvedAsync = (0, _nullthrows().default)(this.#graph.resolveAsyncDependency(dep, (0, _Bundle.bundleToInternalBundle)(bundle)), `Failed to load depenendency for '${dep.specifier}' specifier from '${String(dep.sourcePath)}'`);
208
208
  if ((resolvedAsync === null || resolvedAsync === void 0 ? void 0 : resolvedAsync.type) === 'asset') {
209
209
  // Single bundle to load dynamically
210
- return [resolvedAsync.value, [this.#createBundle((0, _nullthrows().default)(this.#graph.getReferencedBundle(dep, (0, _Bundle.bundleToInternalBundle)(bundle))), this.#graph, this.#options)]];
210
+ return [resolvedAsync.value, [this.#createBundle((0, _nullthrows().default)(this.#graph.getReferencedBundle(dep, (0, _Bundle.bundleToInternalBundle)(bundle)), `Failed to load referenced bundle for '${dep.specifier}' specifier from '${String(dep.sourcePath)}'`), this.#graph, this.#options)]];
211
211
  } else {
212
212
  // Bundle group means we have multiple bundles to load first
213
213
  return [this.#graph.getAssetById(resolvedAsync.value.entryAssetId), this.#graph.getBundlesInBundleGroup(resolvedAsync.value).map(b => this.#createBundle(b, this.#graph, this.#options))];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/core",
3
- "version": "2.12.1-canary.3531+c9cb92cdb",
3
+ "version": "2.12.1-canary.3534+80c3a9777",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,21 +20,21 @@
20
20
  "check-ts": "tsc --noEmit index.d.ts"
21
21
  },
22
22
  "dependencies": {
23
- "@atlaspack/build-cache": "2.12.1-canary.3531+c9cb92cdb",
24
- "@atlaspack/cache": "2.12.1-canary.3531+c9cb92cdb",
25
- "@atlaspack/diagnostic": "2.12.1-canary.3531+c9cb92cdb",
26
- "@atlaspack/events": "2.12.1-canary.3531+c9cb92cdb",
27
- "@atlaspack/feature-flags": "2.12.1-canary.3531+c9cb92cdb",
28
- "@atlaspack/fs": "2.12.1-canary.3531+c9cb92cdb",
29
- "@atlaspack/graph": "3.2.1-canary.3531+c9cb92cdb",
30
- "@atlaspack/logger": "2.12.1-canary.3531+c9cb92cdb",
31
- "@atlaspack/package-manager": "2.12.1-canary.3531+c9cb92cdb",
32
- "@atlaspack/plugin": "2.12.1-canary.3531+c9cb92cdb",
33
- "@atlaspack/profiler": "2.12.1-canary.3531+c9cb92cdb",
34
- "@atlaspack/rust": "2.12.1-canary.3531+c9cb92cdb",
35
- "@atlaspack/types": "2.12.1-canary.3531+c9cb92cdb",
36
- "@atlaspack/utils": "2.12.1-canary.3531+c9cb92cdb",
37
- "@atlaspack/workers": "2.12.1-canary.3531+c9cb92cdb",
23
+ "@atlaspack/build-cache": "2.12.1-canary.3534+80c3a9777",
24
+ "@atlaspack/cache": "2.12.1-canary.3534+80c3a9777",
25
+ "@atlaspack/diagnostic": "2.12.1-canary.3534+80c3a9777",
26
+ "@atlaspack/events": "2.12.1-canary.3534+80c3a9777",
27
+ "@atlaspack/feature-flags": "2.12.1-canary.3534+80c3a9777",
28
+ "@atlaspack/fs": "2.12.1-canary.3534+80c3a9777",
29
+ "@atlaspack/graph": "3.2.1-canary.3534+80c3a9777",
30
+ "@atlaspack/logger": "2.12.1-canary.3534+80c3a9777",
31
+ "@atlaspack/package-manager": "2.12.1-canary.3534+80c3a9777",
32
+ "@atlaspack/plugin": "2.12.1-canary.3534+80c3a9777",
33
+ "@atlaspack/profiler": "2.12.1-canary.3534+80c3a9777",
34
+ "@atlaspack/rust": "2.12.1-canary.3534+80c3a9777",
35
+ "@atlaspack/types": "2.12.1-canary.3534+80c3a9777",
36
+ "@atlaspack/utils": "2.12.1-canary.3534+80c3a9777",
37
+ "@atlaspack/workers": "2.12.1-canary.3534+80c3a9777",
38
38
  "@mischnic/json-sourcemap": "^0.1.0",
39
39
  "@parcel/source-map": "^2.1.1",
40
40
  "base-x": "^3.0.8",
@@ -66,5 +66,5 @@
66
66
  "browser": {
67
67
  "./src/serializerCore.js": "./src/serializerCore.browser.js"
68
68
  },
69
- "gitHead": "c9cb92cdb13d6c2b9ebb9342c0daf2ea7d718f5b"
69
+ "gitHead": "80c3a97779bec00bdb7c90eb5da4174cca5d5215"
70
70
  }
@@ -378,6 +378,9 @@ export default class BundleGraph<TBundle: IBundle>
378
378
  dep,
379
379
  bundleToInternalBundle(bundle),
380
380
  ),
381
+ `Failed to load depenendency for '${
382
+ dep.specifier
383
+ }' specifier from '${String(dep.sourcePath)}'`,
381
384
  );
382
385
  if (resolvedAsync?.type === 'asset') {
383
386
  // Single bundle to load dynamically
@@ -390,6 +393,9 @@ export default class BundleGraph<TBundle: IBundle>
390
393
  dep,
391
394
  bundleToInternalBundle(bundle),
392
395
  ),
396
+ `Failed to load referenced bundle for '${
397
+ dep.specifier
398
+ }' specifier from '${String(dep.sourcePath)}'`,
393
399
  ),
394
400
  this.#graph,
395
401
  this.#options,