@atlaspack/core 2.16.2-canary.101 → 2.16.2-canary.103
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/Atlaspack.js +5 -0
- package/package.json +17 -17
- package/src/Atlaspack.js +5 -0
package/lib/Atlaspack.js
CHANGED
|
@@ -395,6 +395,11 @@ class Atlaspack {
|
|
|
395
395
|
}
|
|
396
396
|
if (options.shouldTrace) {
|
|
397
397
|
_profiler().tracer.enable();
|
|
398
|
+
// We need to ensure the tracer is disabled when Atlaspack is disposed as it is a module level object.
|
|
399
|
+
// While rare (except for tests), if another instance is created later it should not have tracing enabled.
|
|
400
|
+
this.#disposable.add(() => {
|
|
401
|
+
_profiler().tracer.disable();
|
|
402
|
+
});
|
|
398
403
|
}
|
|
399
404
|
await this.#reporterRunner.report({
|
|
400
405
|
type: 'buildStart'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/core",
|
|
3
|
-
"version": "2.16.2-canary.
|
|
3
|
+
"version": "2.16.2-canary.103+1ff31f103",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -21,21 +21,21 @@
|
|
|
21
21
|
"check-ts": "tsc --noEmit index.d.ts"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaspack/build-cache": "2.13.3-canary.
|
|
25
|
-
"@atlaspack/cache": "3.1.1-canary.
|
|
26
|
-
"@atlaspack/diagnostic": "2.14.1-canary.
|
|
27
|
-
"@atlaspack/events": "2.14.1-canary.
|
|
28
|
-
"@atlaspack/feature-flags": "2.14.1-canary.
|
|
29
|
-
"@atlaspack/fs": "2.14.5-canary.
|
|
30
|
-
"@atlaspack/graph": "3.4.1-canary.
|
|
31
|
-
"@atlaspack/logger": "2.14.5-canary.
|
|
32
|
-
"@atlaspack/package-manager": "2.14.5-canary.
|
|
33
|
-
"@atlaspack/plugin": "2.14.5-canary.
|
|
34
|
-
"@atlaspack/profiler": "2.14.1-canary.
|
|
35
|
-
"@atlaspack/rust": "3.2.1-canary.
|
|
36
|
-
"@atlaspack/types": "2.14.5-canary.
|
|
37
|
-
"@atlaspack/utils": "2.14.5-canary.
|
|
38
|
-
"@atlaspack/workers": "2.14.5-canary.
|
|
24
|
+
"@atlaspack/build-cache": "2.13.3-canary.171+1ff31f103",
|
|
25
|
+
"@atlaspack/cache": "3.1.1-canary.103+1ff31f103",
|
|
26
|
+
"@atlaspack/diagnostic": "2.14.1-canary.171+1ff31f103",
|
|
27
|
+
"@atlaspack/events": "2.14.1-canary.171+1ff31f103",
|
|
28
|
+
"@atlaspack/feature-flags": "2.14.1-canary.171+1ff31f103",
|
|
29
|
+
"@atlaspack/fs": "2.14.5-canary.103+1ff31f103",
|
|
30
|
+
"@atlaspack/graph": "3.4.1-canary.171+1ff31f103",
|
|
31
|
+
"@atlaspack/logger": "2.14.5-canary.103+1ff31f103",
|
|
32
|
+
"@atlaspack/package-manager": "2.14.5-canary.103+1ff31f103",
|
|
33
|
+
"@atlaspack/plugin": "2.14.5-canary.103+1ff31f103",
|
|
34
|
+
"@atlaspack/profiler": "2.14.1-canary.171+1ff31f103",
|
|
35
|
+
"@atlaspack/rust": "3.2.1-canary.103+1ff31f103",
|
|
36
|
+
"@atlaspack/types": "2.14.5-canary.103+1ff31f103",
|
|
37
|
+
"@atlaspack/utils": "2.14.5-canary.103+1ff31f103",
|
|
38
|
+
"@atlaspack/workers": "2.14.5-canary.103+1ff31f103",
|
|
39
39
|
"@mischnic/json-sourcemap": "^0.1.0",
|
|
40
40
|
"@parcel/source-map": "^2.1.1",
|
|
41
41
|
"base-x": "^3.0.8",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"./src/serializerCore.js": "./src/serializerCore.browser.js"
|
|
61
61
|
},
|
|
62
62
|
"type": "commonjs",
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "1ff31f10391c48780c9fcfc243b4e828a1b285e0"
|
|
64
64
|
}
|
package/src/Atlaspack.js
CHANGED
|
@@ -386,6 +386,11 @@ export default class Atlaspack {
|
|
|
386
386
|
}
|
|
387
387
|
if (options.shouldTrace) {
|
|
388
388
|
tracer.enable();
|
|
389
|
+
// We need to ensure the tracer is disabled when Atlaspack is disposed as it is a module level object.
|
|
390
|
+
// While rare (except for tests), if another instance is created later it should not have tracing enabled.
|
|
391
|
+
this.#disposable.add(() => {
|
|
392
|
+
tracer.disable();
|
|
393
|
+
});
|
|
389
394
|
}
|
|
390
395
|
await this.#reporterRunner.report({
|
|
391
396
|
type: 'buildStart',
|