Skip to content

Commit 432ee45

Browse files
committedMar 20, 2025·
Enable resolving source field in dev dependencies
1 parent fbcd624 commit 432ee45

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed
 

‎packages/core/package-manager/src/NodePackageManager.js

+2-11
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,8 @@ const MAIN = 1 << 0;
3838
const SOURCE = 1 << 2;
3939
const NODE_CONDITION = 1 << 3;
4040
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;
41+
const ENTRIES = MAIN | SOURCE;
42+
const CONDITIONS = NODE_CONDITION | SOURCE_CONDITION;
5243

5344
const NODE_MODULES = `${path.sep}node_modules${path.sep}`;
5445

0 commit comments

Comments
 (0)
Please sign in to comment.