We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent fbcd624 commit 432ee45Copy full SHA for 432ee45
packages/core/package-manager/src/NodePackageManager.js
@@ -38,17 +38,8 @@ 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 |
43
- (process.env.PARCEL_BUILD_ENV !== 'production' ||
44
- process.env.PARCEL_SELF_BUILD
45
- ? SOURCE
46
- : 0);
47
-
48
-const CONDITIONS =
49
- process.env.PARCEL_BUILD_ENV !== 'production' || process.env.PARCEL_SELF_BUILD
50
- ? NODE_CONDITION | SOURCE_CONDITION
51
- : NODE_CONDITION;
+const ENTRIES = MAIN | SOURCE;
+const CONDITIONS = NODE_CONDITION | SOURCE_CONDITION;
52
53
const NODE_MODULES = `${path.sep}node_modules${path.sep}`;
54
0 commit comments