@atlaspack/node-resolver-core 3.5.15-alshintegrationtestslib.0 → 3.5.15-dev.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 +8 -14
- package/package.json +7 -7
package/lib/Wrapper.js
CHANGED
@@ -596,33 +596,27 @@ 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
|
-
|
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;
|
599
|
+
|
606
600
|
let conditions = 0;
|
607
601
|
if (env.isBrowser()) {
|
608
|
-
conditions |=
|
602
|
+
conditions |= 1 << 4;
|
609
603
|
}
|
610
604
|
if (env.isWorker()) {
|
611
|
-
conditions |=
|
605
|
+
conditions |= 1 << 5;
|
612
606
|
}
|
613
607
|
if (env.isWorklet()) {
|
614
|
-
conditions |=
|
608
|
+
conditions |= 1 << 6;
|
615
609
|
}
|
616
610
|
if (env.isElectron()) {
|
617
|
-
conditions |=
|
611
|
+
conditions |= 1 << 7;
|
618
612
|
}
|
619
613
|
if (env.isNode()) {
|
620
|
-
conditions |=
|
614
|
+
conditions |= 1 << 3;
|
621
615
|
}
|
622
616
|
if (mode === 'production') {
|
623
|
-
conditions |=
|
617
|
+
conditions |= 1 << 9;
|
624
618
|
} else if (mode === 'development') {
|
625
|
-
conditions |=
|
619
|
+
conditions |= 1 << 8;
|
626
620
|
}
|
627
621
|
return conditions;
|
628
622
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaspack/node-resolver-core",
|
3
|
-
"version": "3.5.15-
|
3
|
+
"version": "3.5.15-dev.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-
|
25
|
-
"@atlaspack/feature-flags": "2.18.3-
|
26
|
-
"@atlaspack/fs": "2.15.10-
|
27
|
-
"@atlaspack/rust": "3.3.6-
|
28
|
-
"@atlaspack/utils": "2.15.3-
|
24
|
+
"@atlaspack/diagnostic": "2.14.2-dev.0",
|
25
|
+
"@atlaspack/feature-flags": "2.18.3-dev.0",
|
26
|
+
"@atlaspack/fs": "2.15.10-dev.0",
|
27
|
+
"@atlaspack/rust": "3.3.6-dev.0",
|
28
|
+
"@atlaspack/utils": "2.15.3-dev.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": "6ce3565fe038caf52c09fad4e48175829b174571"
|
62
62
|
}
|