external imports

This commit is contained in:
Dmitry Vasilev
2022-10-19 03:22:48 +08:00
parent 1bea819b1a
commit 68d7a88ac3
9 changed files with 362 additions and 32 deletions

View File

@@ -43,6 +43,7 @@ export const map_destructuring_identifiers = (node, mapper) => {
export const collect_imports = module => {
const imports = module.stmts
.filter(n => n.type == 'import')
.filter(n => !n.is_external)
.map(n =>
n.imports.map(i =>
({name: i.value, module: n.full_import_path})