mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
refactor
This commit is contained in:
@@ -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) => [
|
||||
|
||||
Reference in New Issue
Block a user