From 2580f1a3728ac3f739aefd7af27002fd686248fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A6=88=EB=88=85?= Date: Sun, 26 Sep 2021 19:41:22 +0900 Subject: [PATCH] feat(node/swc): Add a named export for `Visitor` (#2291) --- node-swc/src/Visitor.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node-swc/src/Visitor.ts b/node-swc/src/Visitor.ts index 4e9777910df..992aabe2786 100644 --- a/node-swc/src/Visitor.ts +++ b/node-swc/src/Visitor.ts @@ -160,7 +160,7 @@ import { TsConstAssertion, } from "./types"; -export default class Visitor { +export class Visitor { visitProgram(n: Program): Program { switch (n.type) { case "Module": @@ -1723,3 +1723,5 @@ export default class Visitor { return n; } } + +export default Visitor;