@atlaspack/workers 2.14.1-dev.131 → 2.14.1-dev.134
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/backend.js +3 -7
- package/package.json +8 -8
- package/src/backend.js +2 -7
package/lib/backend.js
CHANGED
|
@@ -13,13 +13,9 @@ function detectBackend() {
|
|
|
13
13
|
case 'process':
|
|
14
14
|
return process.env.ATLASPACK_WORKER_BACKEND;
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return 'threads';
|
|
20
|
-
} catch (err) {
|
|
21
|
-
return 'process';
|
|
22
|
-
}
|
|
16
|
+
|
|
17
|
+
// default to threads if no explicit option has been passed
|
|
18
|
+
return 'threads';
|
|
23
19
|
}
|
|
24
20
|
function getWorkerBackend(backend) {
|
|
25
21
|
switch (backend) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/workers",
|
|
3
|
-
"version": "2.14.1-dev.
|
|
3
|
+
"version": "2.14.1-dev.134+e072f4b10",
|
|
4
4
|
"description": "Blazing fast, zero configuration web application bundler",
|
|
5
5
|
"license": "(MIT OR Apache-2.0)",
|
|
6
6
|
"publishConfig": {
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaspack/build-cache": "2.13.3-dev.
|
|
28
|
-
"@atlaspack/diagnostic": "2.14.1-dev.
|
|
29
|
-
"@atlaspack/logger": "2.14.1-dev.
|
|
30
|
-
"@atlaspack/profiler": "2.14.1-dev.
|
|
31
|
-
"@atlaspack/types-internal": "2.14.1-dev.
|
|
32
|
-
"@atlaspack/utils": "2.14.1-dev.
|
|
27
|
+
"@atlaspack/build-cache": "2.13.3-dev.134+e072f4b10",
|
|
28
|
+
"@atlaspack/diagnostic": "2.14.1-dev.134+e072f4b10",
|
|
29
|
+
"@atlaspack/logger": "2.14.1-dev.134+e072f4b10",
|
|
30
|
+
"@atlaspack/profiler": "2.14.1-dev.134+e072f4b10",
|
|
31
|
+
"@atlaspack/types-internal": "2.14.1-dev.134+e072f4b10",
|
|
32
|
+
"@atlaspack/utils": "2.14.1-dev.134+e072f4b10",
|
|
33
33
|
"nullthrows": "^1.1.1"
|
|
34
34
|
},
|
|
35
35
|
"browser": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"./src/threads/ThreadsWorker.js": false
|
|
38
38
|
},
|
|
39
39
|
"type": "commonjs",
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "e072f4b100a13d97c544324004819ee51cdac4a8"
|
|
41
41
|
}
|
package/src/backend.js
CHANGED
|
@@ -11,13 +11,8 @@ export function detectBackend(): BackendType {
|
|
|
11
11
|
return process.env.ATLASPACK_WORKER_BACKEND;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
(() => require('worker_threads'))();
|
|
17
|
-
return 'threads';
|
|
18
|
-
} catch (err) {
|
|
19
|
-
return 'process';
|
|
20
|
-
}
|
|
14
|
+
// default to threads if no explicit option has been passed
|
|
15
|
+
return 'threads';
|
|
21
16
|
}
|
|
22
17
|
|
|
23
18
|
export function getWorkerBackend(backend: BackendType): Class<WorkerImpl> {
|