This commit is contained in:
Dmitry Vasilev
2023-10-26 10:29:57 +08:00
parent f93287abd0
commit 9a95c054a3
5 changed files with 14 additions and 17 deletions

View File

@@ -228,7 +228,7 @@ const node_has_toplevel_await = node => {
export const check_imports = modules => {
// TODO allow circular imports
return map_object(modules, (module, node) => {
const imports = node.stmts
const imports = node.children
.filter(n => n.type == 'import')
.reduce(
(imports, n) => [