Skip to content

Commit

Permalink
print import reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Sep 13, 2022
1 parent faf9406 commit 16b0524
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/babel-generator/src/generators/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ export function ImportDeclaration(this: Printer, node: t.ImportDeclaration) {
if (isTypeKind) {
this.word(node.importKind);
this.space();
} else if (node.reflection != null) {
this.word(node.reflection);
this.space();
}

const specifiers = node.specifiers.slice(0);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import module foo from "./module.wasm";
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import module foo from "./module.wasm";
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["importReflection"]
}

0 comments on commit 16b0524

Please sign in to comment.