Update playground to use generators

This commit is contained in:
Andrew Morris
2023-06-01 13:18:35 +10:00
parent 7e22dbeba0
commit 9786625d97
9 changed files with 80 additions and 174 deletions

View File

@@ -365,9 +365,17 @@ impl ModuleCompiler {
use swc_ecma_ast::ExportSpecifier::*;
use swc_ecma_ast::ModuleExportName;
if en.type_only {
return;
}
for specifier in &en.specifiers {
match specifier {
Named(named) => {
if named.is_type_only {
continue;
}
let orig_name = match &named.orig {
ModuleExportName::Ident(ident) => ident,
ModuleExportName::Str(_) => {