mirror of https://github.com/webpack/webpack.git
hide stack trace in export warnings
This commit is contained in:
parent
b24bbdcf22
commit
76efbcf801
|
@ -31,10 +31,12 @@ HarmonyImportSpecifierDependency.prototype.getWarnings = function() {
|
|||
var importedModule = this.importDependency.module;
|
||||
if(importedModule && importedModule.meta && importedModule.meta.harmonyModule) {
|
||||
if(this.id && importedModule.isProvided(this.id) === false) {
|
||||
var err = new Error("export '" + this.id + "'" +
|
||||
(this.id !== this.name ? " (imported as '" + this.name + "')" : "") +
|
||||
" was not found in '" + this.importDependency.userRequest + "'");
|
||||
err.hideStack = true;
|
||||
return [
|
||||
new Error("export '" + this.id + "'" +
|
||||
(this.id !== this.name ? " (imported as '" + this.name + "')" : "") +
|
||||
" was not found in '" + this.importDependency.userRequest + "'")
|
||||
err
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue