You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/ExportsFieldPlugin.js
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -114,9 +114,14 @@ module.exports = class ExportsFieldPlugin {
114
114
}
115
115
116
116
if(paths.length===0){
117
+
constconditions=[...this.conditionNames];
118
+
constconditionsStr=
119
+
conditions.length===1
120
+
? `the condition "${conditions[0]}"`
121
+
: `the conditions ${JSON.stringify(conditions)}`;
117
122
returncallback(
118
123
newError(
119
-
`Package path ${remainingRequest} is not exported from package ${request.descriptionFileRoot} (see exports field in ${request.descriptionFilePath})`,
124
+
`"${remainingRequest}" is not exported under ${conditionsStr} from package ${request.descriptionFileRoot} (see exports field in ${request.descriptionFilePath})`,
0 commit comments