@atlaspack/core 2.13.2-canary.3633 → 2.13.2-canary.3635
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/RequestTracker.js +7 -2
- package/package.json +17 -17
- package/src/RequestTracker.js +6 -0
package/lib/RequestTracker.js
CHANGED
|
@@ -513,7 +513,11 @@ class RequestGraph extends _graph().ContentGraph {
|
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
async respondToFSEvents(events, options, threshold
|
|
516
|
+
async respondToFSEvents(events, options, threshold,
|
|
517
|
+
/**
|
|
518
|
+
* True if this is the start-up (loading phase) invalidation.
|
|
519
|
+
*/
|
|
520
|
+
isInitialBuild = false) {
|
|
517
521
|
let didInvalidate = false;
|
|
518
522
|
let count = 0;
|
|
519
523
|
let predictedTime = 0;
|
|
@@ -672,6 +676,7 @@ class RequestGraph extends _graph().ContentGraph {
|
|
|
672
676
|
trackableEvent: 'fsevent_response_time',
|
|
673
677
|
duration,
|
|
674
678
|
predictedTime,
|
|
679
|
+
isInitialBuild,
|
|
675
680
|
numberOfEvents: events.length,
|
|
676
681
|
numberOfInvalidatedNodes: invalidatedNodes.size
|
|
677
682
|
}
|
|
@@ -1110,7 +1115,7 @@ async function loadRequestGraph(options) {
|
|
|
1110
1115
|
requestGraph.invalidateOnBuildNodes();
|
|
1111
1116
|
requestGraph.invalidateEnvNodes(options.env);
|
|
1112
1117
|
requestGraph.invalidateOptionNodes(options);
|
|
1113
|
-
await requestGraph.respondToFSEvents(options.unstableFileInvalidations || events, options, 10000);
|
|
1118
|
+
await requestGraph.respondToFSEvents(options.unstableFileInvalidations || events, options, 10000, true);
|
|
1114
1119
|
return requestGraph;
|
|
1115
1120
|
} catch (e) {
|
|
1116
1121
|
// Prevent logging fs events took too long warning
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/core",
|
|
3
|
-
"version": "2.13.2-canary.
|
|
3
|
+
"version": "2.13.2-canary.3635+bfe81e551",
|
|
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.
|
|
24
|
-
"@atlaspack/cache": "2.13.2-canary.
|
|
25
|
-
"@atlaspack/diagnostic": "2.13.2-canary.
|
|
26
|
-
"@atlaspack/events": "2.13.2-canary.
|
|
27
|
-
"@atlaspack/feature-flags": "2.13.2-canary.
|
|
28
|
-
"@atlaspack/fs": "2.13.2-canary.
|
|
29
|
-
"@atlaspack/graph": "3.3.2-canary.
|
|
30
|
-
"@atlaspack/logger": "2.13.2-canary.
|
|
31
|
-
"@atlaspack/package-manager": "2.13.2-canary.
|
|
32
|
-
"@atlaspack/plugin": "2.13.2-canary.
|
|
33
|
-
"@atlaspack/profiler": "2.13.2-canary.
|
|
34
|
-
"@atlaspack/rust": "2.13.2-canary.
|
|
35
|
-
"@atlaspack/types": "2.13.2-canary.
|
|
36
|
-
"@atlaspack/utils": "2.13.2-canary.
|
|
37
|
-
"@atlaspack/workers": "2.13.2-canary.
|
|
23
|
+
"@atlaspack/build-cache": "2.13.2-canary.3635+bfe81e551",
|
|
24
|
+
"@atlaspack/cache": "2.13.2-canary.3635+bfe81e551",
|
|
25
|
+
"@atlaspack/diagnostic": "2.13.2-canary.3635+bfe81e551",
|
|
26
|
+
"@atlaspack/events": "2.13.2-canary.3635+bfe81e551",
|
|
27
|
+
"@atlaspack/feature-flags": "2.13.2-canary.3635+bfe81e551",
|
|
28
|
+
"@atlaspack/fs": "2.13.2-canary.3635+bfe81e551",
|
|
29
|
+
"@atlaspack/graph": "3.3.2-canary.3635+bfe81e551",
|
|
30
|
+
"@atlaspack/logger": "2.13.2-canary.3635+bfe81e551",
|
|
31
|
+
"@atlaspack/package-manager": "2.13.2-canary.3635+bfe81e551",
|
|
32
|
+
"@atlaspack/plugin": "2.13.2-canary.3635+bfe81e551",
|
|
33
|
+
"@atlaspack/profiler": "2.13.2-canary.3635+bfe81e551",
|
|
34
|
+
"@atlaspack/rust": "2.13.2-canary.3635+bfe81e551",
|
|
35
|
+
"@atlaspack/types": "2.13.2-canary.3635+bfe81e551",
|
|
36
|
+
"@atlaspack/utils": "2.13.2-canary.3635+bfe81e551",
|
|
37
|
+
"@atlaspack/workers": "2.13.2-canary.3635+bfe81e551",
|
|
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": "
|
|
69
|
+
"gitHead": "bfe81e551c4e4bb2cac7fc4745222e66962c1728"
|
|
70
70
|
}
|
package/src/RequestTracker.js
CHANGED
|
@@ -903,6 +903,10 @@ export class RequestGraph extends ContentGraph<
|
|
|
903
903
|
events: Array<Event>,
|
|
904
904
|
options: AtlaspackOptions,
|
|
905
905
|
threshold: number,
|
|
906
|
+
/**
|
|
907
|
+
* True if this is the start-up (loading phase) invalidation.
|
|
908
|
+
*/
|
|
909
|
+
isInitialBuild: boolean = false,
|
|
906
910
|
): Async<boolean> {
|
|
907
911
|
let didInvalidate = false;
|
|
908
912
|
let count = 0;
|
|
@@ -1114,6 +1118,7 @@ export class RequestGraph extends ContentGraph<
|
|
|
1114
1118
|
trackableEvent: 'fsevent_response_time',
|
|
1115
1119
|
duration,
|
|
1116
1120
|
predictedTime,
|
|
1121
|
+
isInitialBuild,
|
|
1117
1122
|
numberOfEvents: events.length,
|
|
1118
1123
|
numberOfInvalidatedNodes: invalidatedNodes.size,
|
|
1119
1124
|
},
|
|
@@ -1718,6 +1723,7 @@ async function loadRequestGraph(options): Async<RequestGraph> {
|
|
|
1718
1723
|
options.unstableFileInvalidations || events,
|
|
1719
1724
|
options,
|
|
1720
1725
|
10000,
|
|
1726
|
+
true,
|
|
1721
1727
|
);
|
|
1722
1728
|
return requestGraph;
|
|
1723
1729
|
} catch (e) {
|