@atlaspack/node-resolver-core 3.5.17-unified-e330ff3d9.0 → 3.5.18-unified-f92fba5b6.0
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/Wrapper.js +14 -8
- package/package.json +7 -7
package/lib/Wrapper.js
CHANGED
@@ -596,27 +596,33 @@ class NodeResolver {
|
|
596
596
|
exports.default = NodeResolver;
|
597
597
|
function environmentToExportsConditions(env, mode) {
|
598
598
|
// These must match the values in package_json.rs.
|
599
|
-
|
599
|
+
const NODE = 1 << 3;
|
600
|
+
const BROWSER = 1 << 4;
|
601
|
+
const WORKER = 1 << 5;
|
602
|
+
const WORKLET = 1 << 6;
|
603
|
+
const ELECTRON = 1 << 7;
|
604
|
+
const DEVELOPMENT = 1 << 8;
|
605
|
+
const PRODUCTION = 1 << 9;
|
600
606
|
let conditions = 0;
|
601
607
|
if (env.isBrowser()) {
|
602
|
-
conditions |=
|
608
|
+
conditions |= BROWSER;
|
603
609
|
}
|
604
610
|
if (env.isWorker()) {
|
605
|
-
conditions |=
|
611
|
+
conditions |= WORKER;
|
606
612
|
}
|
607
613
|
if (env.isWorklet()) {
|
608
|
-
conditions |=
|
614
|
+
conditions |= WORKLET;
|
609
615
|
}
|
610
616
|
if (env.isElectron()) {
|
611
|
-
conditions |=
|
617
|
+
conditions |= ELECTRON;
|
612
618
|
}
|
613
619
|
if (env.isNode()) {
|
614
|
-
conditions |=
|
620
|
+
conditions |= NODE;
|
615
621
|
}
|
616
622
|
if (mode === 'production') {
|
617
|
-
conditions |=
|
623
|
+
conditions |= PRODUCTION;
|
618
624
|
} else if (mode === 'development') {
|
619
|
-
conditions |=
|
625
|
+
conditions |= DEVELOPMENT;
|
620
626
|
}
|
621
627
|
return conditions;
|
622
628
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaspack/node-resolver-core",
|
3
|
-
"version": "3.5.
|
3
|
+
"version": "3.5.18-unified-f92fba5b6.0",
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -21,11 +21,11 @@
|
|
21
21
|
"lib"
|
22
22
|
],
|
23
23
|
"dependencies": {
|
24
|
-
"@atlaspack/diagnostic": "2.14.2-unified-
|
25
|
-
"@atlaspack/feature-flags": "2.18.5-unified-
|
26
|
-
"@atlaspack/fs": "2.15.
|
27
|
-
"@atlaspack/rust": "3.
|
28
|
-
"@atlaspack/utils": "2.16.
|
24
|
+
"@atlaspack/diagnostic": "2.14.2-unified-f92fba5b6.0",
|
25
|
+
"@atlaspack/feature-flags": "2.18.5-unified-f92fba5b6.0",
|
26
|
+
"@atlaspack/fs": "2.15.13-unified-f92fba5b6.0",
|
27
|
+
"@atlaspack/rust": "3.4.1-unified-f92fba5b6.0",
|
28
|
+
"@atlaspack/utils": "2.16.2-unified-f92fba5b6.0",
|
29
29
|
"@mischnic/json-sourcemap": "^0.1.0",
|
30
30
|
"nullthrows": "^1.1.1",
|
31
31
|
"semver": "^7.5.2"
|
@@ -58,5 +58,5 @@
|
|
58
58
|
"./src/builtins.js": "./src/builtins.browser.js"
|
59
59
|
},
|
60
60
|
"type": "commonjs",
|
61
|
-
"gitHead": "
|
61
|
+
"gitHead": "f92fba5b6216e1d94cbd23f3a5d61f7188d49199"
|
62
62
|
}
|