fix: push exported variable when hoisting export declared names (#12110)
This commit is contained in:
@@ -506,9 +506,11 @@ export default declare((api, options) => {
|
||||
path,
|
||||
(id, name, hasInit) => {
|
||||
variableIds.push(id);
|
||||
if (!hasInit) {
|
||||
exportNames.push(name);
|
||||
exportValues.push(scope.buildUndefinedNode());
|
||||
if (!hasInit && name in exportMap) {
|
||||
for (const exported of exportMap[name]) {
|
||||
exportNames.push(exported);
|
||||
exportValues.push(scope.buildUndefinedNode());
|
||||
}
|
||||
}
|
||||
},
|
||||
null,
|
||||
|
||||
Reference in New Issue
Block a user