Skip to content

Commit

Permalink
fix: quote macro support import phase
Browse files Browse the repository at this point in the history
  • Loading branch information
JSerFeng committed Jan 22, 2024
1 parent 6842e64 commit 121ddac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/swc_ecma_quote_macros/src/ast/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl_struct!(CondExpr, [span, test, cons, alt]);
impl_struct!(CallExpr, [span, callee, args, type_args]);
impl_struct!(ExprOrSpread, [spread, expr]);
impl_struct!(Super, [span]);
impl_struct!(Import, [span]);
impl_struct!(Import, [span, phase]);
impl_struct!(NewExpr, [span, callee, args, type_args]);
impl_struct!(SeqExpr, [span, exprs]);

Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_quote_macros/src/ast/module_decl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl_enum!(
]
);

impl_struct!(ImportDecl, [span, specifiers, src, type_only, with]);
impl_struct!(ImportDecl, [span, specifiers, src, type_only, with, phase]);
impl_struct!(ExportDecl, [span, decl]);
impl_struct!(ExportDefaultDecl, [span, decl]);
impl_struct!(ExportDefaultExpr, [span, expr]);
Expand Down

0 comments on commit 121ddac

Please sign in to comment.