fix(var): remember to put in liveExportMap
MODIFY
src/babelPlugin.js
src/babelPlugin.js
@@ -97,8 +97,10 @@ function makeModulePlugins(options) {
t.assignmentExpression('=', t.identifier(name), id),
),
);
- return prior;
+ for (const importTo of topLevelExported[name]) {
+ liveExportMap[importTo] = [name, true];
}
+ } else {
// Just add $h_once.name(name);
prior.push(
t.expressionStatement(
@@ -109,6 +111,7 @@ function makeModulePlugins(options) {
fixedExportMap[importTo] = [name];
}
}
+ }
return prior;
}, []);

fix(var): remember to put in liveExportMap