Fix legacy build
The build process failed because webpack does not allow failed imports when it is run as a module. This detects modules with default exports and only generates import statements for default exports where they are available.
This commit is contained in:
@@ -137,6 +137,9 @@ exports.publish = function (data, opts) {
|
||||
return true;
|
||||
});
|
||||
}
|
||||
if (doc.isDefaultExport) {
|
||||
symbol.isDefaultExport = true;
|
||||
}
|
||||
|
||||
const target = isExterns ? externs : symbols;
|
||||
const existingSymbol = symbolsByName[symbol.name];
|
||||
|
||||
Reference in New Issue
Block a user