mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Update playground to use generators
This commit is contained in:
@@ -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(_) => {
|
||||
|
||||
Reference in New Issue
Block a user