diff --git a/lib/dependencies/HarmonyExportImportedSpecifierDependency.js b/lib/dependencies/HarmonyExportImportedSpecifierDependency.js index 1183dc542..15429b6ed 100644 --- a/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +++ b/lib/dependencies/HarmonyExportImportedSpecifierDependency.js @@ -359,10 +359,9 @@ class HarmonyExportImportedSpecifierDependency extends HarmonyImportDependency { this._id !== "default" ) { // In strict harmony modules we only support the default export - const exportName = `the named export '${this._id}'`; return [ new HarmonyLinkingError( - `Can't reexport ${exportName} from non EcmaScript module (only default export is available)` + `Can't reexport the named export '${this._id}' from non EcmaScript module (only default export is available)` ) ]; } diff --git a/lib/dependencies/HarmonyImportSpecifierDependency.js b/lib/dependencies/HarmonyImportSpecifierDependency.js index 76b9e2410..d07fbf1ca 100644 --- a/lib/dependencies/HarmonyImportSpecifierDependency.js +++ b/lib/dependencies/HarmonyImportSpecifierDependency.js @@ -84,10 +84,9 @@ class HarmonyImportSpecifierDependency extends HarmonyImportDependency { this._id !== "default" ) { // In strict harmony modules we only support the default export - const exportName = `the named export '${this._id}'`; return [ new HarmonyLinkingError( - `Can't import ${exportName} from non EcmaScript module (only default export is available)` + `Can't import the named export '${this._id}' from non EcmaScript module (only default export is available)` ) ]; }