We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ac7743 commit ece8f3eCopy full SHA for ece8f3e
ecmascript/transforms/module/src/common_js.rs
@@ -184,9 +184,19 @@ where
184
_ => unreachable!(),
185
};
186
187
- //
188
extra_stmts.push(ModuleItem::Stmt(Stmt::Decl(decl.fold_with(self))));
189
+ if !is_class {
190
+ let mut scope = self.scope.borrow_mut();
191
+ scope
192
+ .exported_vars
193
+ .entry((ident.sym.clone(), ident.span.ctxt()))
194
+ .or_default()
195
+ .push((ident.sym.clone(), ident.span.ctxt()));
196
+
197
+ drop(scope);
198
+ }
199
200
let append_to: &mut Vec<_> = if is_class {
201
&mut extra_stmts
202
} else {
0 commit comments