@atlaspack/core 2.16.2-canary.21 → 2.16.2-canary.22
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 +7 -1
- package/package.json +17 -17
- package/src/Atlaspack.js +8 -1
package/lib/Atlaspack.js
CHANGED
|
@@ -207,10 +207,16 @@ class Atlaspack {
|
|
|
207
207
|
// $FlowFixMe
|
|
208
208
|
const version = require('../package.json').version;
|
|
209
209
|
await lmdb.put('current_session_version', Buffer.from(version));
|
|
210
|
+
let threads = undefined;
|
|
211
|
+
if (process.env.ATLASPACK_NATIVE_THREADS !== undefined) {
|
|
212
|
+
threads = parseInt(process.env.ATLASPACK_NATIVE_THREADS, 10);
|
|
213
|
+
} else if (process.env.NODE_ENV === 'test') {
|
|
214
|
+
threads = 2;
|
|
215
|
+
}
|
|
210
216
|
rustAtlaspack = await _atlaspackV.AtlaspackV3.create({
|
|
211
217
|
...options,
|
|
212
218
|
corePath: _path().default.join(__dirname, '..'),
|
|
213
|
-
threads
|
|
219
|
+
threads,
|
|
214
220
|
entries: Array.isArray(entries) ? entries : entries == null ? undefined : [entries],
|
|
215
221
|
env: resolvedOptions.env,
|
|
216
222
|
fs: inputFS && new _atlaspackV.FileSystemV3(inputFS),
|
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.22+15c1e3c06",
|
|
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.90+15c1e3c06",
|
|
25
|
+
"@atlaspack/cache": "3.1.1-canary.22+15c1e3c06",
|
|
26
|
+
"@atlaspack/diagnostic": "2.14.1-canary.90+15c1e3c06",
|
|
27
|
+
"@atlaspack/events": "2.14.1-canary.90+15c1e3c06",
|
|
28
|
+
"@atlaspack/feature-flags": "2.14.1-canary.90+15c1e3c06",
|
|
29
|
+
"@atlaspack/fs": "2.14.5-canary.22+15c1e3c06",
|
|
30
|
+
"@atlaspack/graph": "3.4.1-canary.90+15c1e3c06",
|
|
31
|
+
"@atlaspack/logger": "2.14.5-canary.22+15c1e3c06",
|
|
32
|
+
"@atlaspack/package-manager": "2.14.5-canary.22+15c1e3c06",
|
|
33
|
+
"@atlaspack/plugin": "2.14.5-canary.22+15c1e3c06",
|
|
34
|
+
"@atlaspack/profiler": "2.14.1-canary.90+15c1e3c06",
|
|
35
|
+
"@atlaspack/rust": "3.2.1-canary.22+15c1e3c06",
|
|
36
|
+
"@atlaspack/types": "2.14.5-canary.22+15c1e3c06",
|
|
37
|
+
"@atlaspack/utils": "2.14.5-canary.22+15c1e3c06",
|
|
38
|
+
"@atlaspack/workers": "2.14.5-canary.22+15c1e3c06",
|
|
39
39
|
"@mischnic/json-sourcemap": "^0.1.0",
|
|
40
40
|
"@parcel/source-map": "^2.1.1",
|
|
41
41
|
"base-x": "^3.0.8",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"./src/serializerCore.js": "./src/serializerCore.browser.js"
|
|
72
72
|
},
|
|
73
73
|
"type": "commonjs",
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "15c1e3c0628bae4c768d76cf3afc53d6d0d7ce7c"
|
|
75
75
|
}
|
package/src/Atlaspack.js
CHANGED
|
@@ -165,10 +165,17 @@ export default class Atlaspack {
|
|
|
165
165
|
const version = require('../package.json').version;
|
|
166
166
|
await lmdb.put('current_session_version', Buffer.from(version));
|
|
167
167
|
|
|
168
|
+
let threads = undefined;
|
|
169
|
+
if (process.env.ATLASPACK_NATIVE_THREADS !== undefined) {
|
|
170
|
+
threads = parseInt(process.env.ATLASPACK_NATIVE_THREADS, 10);
|
|
171
|
+
} else if (process.env.NODE_ENV === 'test') {
|
|
172
|
+
threads = 2;
|
|
173
|
+
}
|
|
174
|
+
|
|
168
175
|
rustAtlaspack = await AtlaspackV3.create({
|
|
169
176
|
...options,
|
|
170
177
|
corePath: path.join(__dirname, '..'),
|
|
171
|
-
threads
|
|
178
|
+
threads,
|
|
172
179
|
entries: Array.isArray(entries)
|
|
173
180
|
? entries
|
|
174
181
|
: entries == null
|