We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b24bbdc commit 76efbcfCopy full SHA for 76efbcf
1 file changed
lib/dependencies/HarmonyImportSpecifierDependency.js
@@ -31,10 +31,12 @@ HarmonyImportSpecifierDependency.prototype.getWarnings = function() {
31
var importedModule = this.importDependency.module;
32
if(importedModule && importedModule.meta && importedModule.meta.harmonyModule) {
33
if(this.id && importedModule.isProvided(this.id) === false) {
34
+ var err = new Error("export '" + this.id + "'" +
35
+ (this.id !== this.name ? " (imported as '" + this.name + "')" : "") +
36
+ " was not found in '" + this.importDependency.userRequest + "'");
37
+ err.hideStack = true;
38
return [
- new Error("export '" + this.id + "'" +
- (this.id !== this.name ? " (imported as '" + this.name + "')" : "") +
- " was not found in '" + this.importDependency.userRequest + "'")
39
+ err
40
];
41
}
42
0 commit comments