@atlaspack/core 2.13.2-canary.3673 → 2.13.2-canary.3675

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.
@@ -33,7 +33,8 @@ function createAtlaspackBuildRequest(input) {
33
33
  async function run({
34
34
  input,
35
35
  api,
36
- options
36
+ options,
37
+ rustAtlaspack
37
38
  }) {
38
39
  let {
39
40
  optionsRef,
@@ -50,7 +51,7 @@ async function run({
50
51
  changedAssets,
51
52
  assetRequests
52
53
  } = await api.runRequest(bundleGraphRequest, {
53
- force: options.shouldBuildLazily && requestedAssetIds.size > 0
54
+ force: Boolean(rustAtlaspack) || options.shouldBuildLazily && requestedAssetIds.size > 0
54
55
  });
55
56
 
56
57
  // $FlowFixMe Added in Flow 0.121.0 upgrade in #4381 (Windows only)
@@ -146,7 +146,7 @@ function createBundleGraphRequest(input) {
146
146
  changedAssets,
147
147
  assetRequests
148
148
  } = await api.runRequest(request, {
149
- force: options.shouldBuildLazily && requestedAssetIds.size > 0
149
+ force: Boolean(input.rustAtlaspack) || options.shouldBuildLazily && requestedAssetIds.size > 0
150
150
  });
151
151
  if ((_input$options$featur = input.options.featureFlags) !== null && _input$options$featur !== void 0 && _input$options$featur.loadableSideEffects) {
152
152
  applySideEffectsForLoadableImports(assetGraph);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/core",
3
- "version": "2.13.2-canary.3673+8386ca4dc",
3
+ "version": "2.13.2-canary.3675+4b12f9022",
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.13.2-canary.3673+8386ca4dc",
24
- "@atlaspack/cache": "2.13.2-canary.3673+8386ca4dc",
25
- "@atlaspack/diagnostic": "2.13.2-canary.3673+8386ca4dc",
26
- "@atlaspack/events": "2.13.2-canary.3673+8386ca4dc",
27
- "@atlaspack/feature-flags": "2.13.2-canary.3673+8386ca4dc",
28
- "@atlaspack/fs": "2.13.2-canary.3673+8386ca4dc",
29
- "@atlaspack/graph": "3.3.2-canary.3673+8386ca4dc",
30
- "@atlaspack/logger": "2.13.2-canary.3673+8386ca4dc",
31
- "@atlaspack/package-manager": "2.13.2-canary.3673+8386ca4dc",
32
- "@atlaspack/plugin": "2.13.2-canary.3673+8386ca4dc",
33
- "@atlaspack/profiler": "2.13.2-canary.3673+8386ca4dc",
34
- "@atlaspack/rust": "2.13.2-canary.3673+8386ca4dc",
35
- "@atlaspack/types": "2.13.2-canary.3673+8386ca4dc",
36
- "@atlaspack/utils": "2.13.2-canary.3673+8386ca4dc",
37
- "@atlaspack/workers": "2.13.2-canary.3673+8386ca4dc",
23
+ "@atlaspack/build-cache": "2.13.2-canary.3675+4b12f9022",
24
+ "@atlaspack/cache": "2.13.2-canary.3675+4b12f9022",
25
+ "@atlaspack/diagnostic": "2.13.2-canary.3675+4b12f9022",
26
+ "@atlaspack/events": "2.13.2-canary.3675+4b12f9022",
27
+ "@atlaspack/feature-flags": "2.13.2-canary.3675+4b12f9022",
28
+ "@atlaspack/fs": "2.13.2-canary.3675+4b12f9022",
29
+ "@atlaspack/graph": "3.3.2-canary.3675+4b12f9022",
30
+ "@atlaspack/logger": "2.13.2-canary.3675+4b12f9022",
31
+ "@atlaspack/package-manager": "2.13.2-canary.3675+4b12f9022",
32
+ "@atlaspack/plugin": "2.13.2-canary.3675+4b12f9022",
33
+ "@atlaspack/profiler": "2.13.2-canary.3675+4b12f9022",
34
+ "@atlaspack/rust": "2.13.2-canary.3675+4b12f9022",
35
+ "@atlaspack/types": "2.13.2-canary.3675+4b12f9022",
36
+ "@atlaspack/utils": "2.13.2-canary.3675+4b12f9022",
37
+ "@atlaspack/workers": "2.13.2-canary.3675+4b12f9022",
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": "8386ca4dc318688fbed1af3bbebf2af3e7d24552"
69
+ "gitHead": "4b12f9022f22077d8ba57f2d74aacfc1323908c6"
70
70
  }
@@ -61,7 +61,7 @@ export default function createAtlaspackBuildRequest(
61
61
  };
62
62
  }
63
63
 
64
- async function run({input, api, options}) {
64
+ async function run({input, api, options, rustAtlaspack}) {
65
65
  let {optionsRef, requestedAssetIds, signal} = input;
66
66
 
67
67
  let bundleGraphRequest = createBundleGraphRequest({
@@ -72,7 +72,9 @@ async function run({input, api, options}) {
72
72
 
73
73
  let {bundleGraph, changedAssets, assetRequests}: BundleGraphResult =
74
74
  await api.runRequest(bundleGraphRequest, {
75
- force: options.shouldBuildLazily && requestedAssetIds.size > 0,
75
+ force:
76
+ Boolean(rustAtlaspack) ||
77
+ (options.shouldBuildLazily && requestedAssetIds.size > 0),
76
78
  });
77
79
 
78
80
  // $FlowFixMe Added in Flow 0.121.0 upgrade in #4381 (Windows only)
@@ -163,7 +163,9 @@ export default function createBundleGraphRequest(
163
163
  let {assetGraph, changedAssets, assetRequests} = await api.runRequest(
164
164
  request,
165
165
  {
166
- force: options.shouldBuildLazily && requestedAssetIds.size > 0,
166
+ force:
167
+ Boolean(input.rustAtlaspack) ||
168
+ (options.shouldBuildLazily && requestedAssetIds.size > 0),
167
169
  },
168
170
  );
169
171