@atlaspack/node-resolver-core 3.5.5-dev.55 → 3.5.5-dev.72

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 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
- 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;
599
+
606
600
  let conditions = 0;
607
601
  if (env.isBrowser()) {
608
- conditions |= BROWSER;
602
+ conditions |= 1 << 4;
609
603
  }
610
604
  if (env.isWorker()) {
611
- conditions |= WORKER;
605
+ conditions |= 1 << 5;
612
606
  }
613
607
  if (env.isWorklet()) {
614
- conditions |= WORKLET;
608
+ conditions |= 1 << 6;
615
609
  }
616
610
  if (env.isElectron()) {
617
- conditions |= ELECTRON;
611
+ conditions |= 1 << 7;
618
612
  }
619
613
  if (env.isNode()) {
620
- conditions |= NODE;
614
+ conditions |= 1 << 3;
621
615
  }
622
616
  if (mode === 'production') {
623
- conditions |= PRODUCTION;
617
+ conditions |= 1 << 9;
624
618
  } else if (mode === 'development') {
625
- conditions |= DEVELOPMENT;
619
+ conditions |= 1 << 8;
626
620
  }
627
621
  return conditions;
628
622
  }
package/lib/builtins.js CHANGED
@@ -11,6 +11,13 @@ function _module() {
11
11
  };
12
12
  return data;
13
13
  }
14
+ function _path() {
15
+ const data = _interopRequireDefault(require("path"));
16
+ _path = function () {
17
+ return data;
18
+ };
19
+ return data;
20
+ }
14
21
  function _nullthrows() {
15
22
  const data = _interopRequireDefault(require("nullthrows"));
16
23
  _nullthrows = function () {
@@ -22,7 +29,7 @@ var _package = _interopRequireDefault(require("../package.json"));
22
29
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
30
  // $FlowFixMe this is untyped
24
31
  // flowlint-next-line untyped-import:off
25
- const empty = exports.empty = require.resolve('./_empty.js');
32
+ const empty = exports.empty = _path().default.join( /*#__ATLASPACK_IGNORE__*/__dirname, './_empty.js');
26
33
  let builtins =
27
34
  // $FlowFixMe
28
35
  Object.create(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/node-resolver-core",
3
- "version": "3.5.5-dev.55+5a11f33c5",
3
+ "version": "3.5.5-dev.72+9840480de",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,12 +20,15 @@
20
20
  "files": [
21
21
  "lib"
22
22
  ],
23
+ "atlaspackReferences": [
24
+ "src/_empty.js"
25
+ ],
23
26
  "dependencies": {
24
- "@atlaspack/diagnostic": "2.14.1-dev.123+5a11f33c5",
25
- "@atlaspack/feature-flags": "2.14.1-dev.123+5a11f33c5",
26
- "@atlaspack/fs": "2.14.5-dev.55+5a11f33c5",
27
- "@atlaspack/rust": "3.2.1-dev.55+5a11f33c5",
28
- "@atlaspack/utils": "2.14.5-dev.55+5a11f33c5",
27
+ "@atlaspack/diagnostic": "2.14.1-dev.140+9840480de",
28
+ "@atlaspack/feature-flags": "2.14.1-dev.140+9840480de",
29
+ "@atlaspack/fs": "2.14.5-dev.72+9840480de",
30
+ "@atlaspack/rust": "3.2.1-dev.72+9840480de",
31
+ "@atlaspack/utils": "2.14.5-dev.72+9840480de",
29
32
  "@mischnic/json-sourcemap": "^0.1.0",
30
33
  "nullthrows": "^1.1.1",
31
34
  "semver": "^7.5.2"
@@ -58,5 +61,5 @@
58
61
  "./src/builtins.js": "./src/builtins.browser.js"
59
62
  },
60
63
  "type": "commonjs",
61
- "gitHead": "5a11f33c51ff74d1cf8d4b72cfa0fda833aa980a"
64
+ "gitHead": "9840480de27511f558d8f5b8cf82220de977b4fb"
62
65
  }