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

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