feat(node/swc): Add a named export for Visitor (#2291)

This commit is contained in:
즈눅 2021-09-26 19:41:22 +09:00 committed by GitHub
parent 552fc2374d
commit 2580f1a372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,7 @@ import {
TsConstAssertion, TsConstAssertion,
} from "./types"; } from "./types";
export default class Visitor { export class Visitor {
visitProgram(n: Program): Program { visitProgram(n: Program): Program {
switch (n.type) { switch (n.type) {
case "Module": case "Module":
@ -1723,3 +1723,5 @@ export default class Visitor {
return n; return n;
} }
} }
export default Visitor;