We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d91920 commit bf0f6dbCopy full SHA for bf0f6db
packages/core/package-manager/src/NodePackageManager.js
@@ -36,6 +36,7 @@ import {transformSync} from '@swc/core';
36
// Package.json fields. Must match package_json.rs.
37
const MAIN = 1 << 0;
38
const SOURCE = 1 << 2;
39
+const NODE_CONDITION = 1 << 3;
40
const SOURCE_CONDITION = 1 << 17;
41
const ENTRIES =
42
MAIN |
@@ -46,8 +47,8 @@ const ENTRIES =
46
47
48
const CONDITIONS =
49
process.env.PARCEL_BUILD_ENV !== 'production' || process.env.PARCEL_SELF_BUILD
- ? SOURCE_CONDITION
50
- : 0;
+ ? NODE_CONDITION | SOURCE_CONDITION
51
+ : NODE_CONDITION;
52
53
const NODE_MODULES = `${path.sep}node_modules${path.sep}`;
54
0 commit comments