We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d872218 commit 6b36e64Copy full SHA for 6b36e64
lib/ExportsFieldPlugin.js
@@ -115,13 +115,10 @@ module.exports = class ExportsFieldPlugin {
115
116
if (paths.length === 0) {
117
let conditions;
118
- if (this.conditionNames.length > 1) {
119
- const listFormat = new Intl.ListFormat("en", { type: "disjunction" });
120
- conditions = `the conditions ${listFormat.format(this.conditionNames.map(c => `"${c}"`))}`;
121
- } else if (this.conditionNames.length == 1) {
+ if (this.conditionNames.length == 1) {
122
conditions = `the condition "${this.conditionNames[0]}"`;
123
} else {
124
- conditions = "the conditions [empty]";
+ conditions = `the conditions ${JSON.stringify(this.conditionNames)}`;
125
}
126
return callback(
127
new Error(
0 commit comments