Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed May 3, 2021
1 parent f55f107 commit ddcbff5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions node-swc/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export class Compiler {
/**
* Parse source code as a babel ast.
*
* If `options.transforms` is specified, this method also applies transforms.
*
* @param src Source code
* @param options
*/
Expand All @@ -42,6 +44,14 @@ export class Compiler {
babelify(input: string | Module, options?: BabelifyOptions): Promise<babel.Program> {
}

/**
* Parse source code as a babel ast.
*
* If `options.transforms` is specified, this method also applies transforms.
*
* @param src Source code
* @param options
*/
babelifySync(src: string, options?: BabelifyOptions): babel.Program;
babelifySync(src: Module, options?: BabelifyOptions): babel.Program;
babelifySync(input: string | Module, options?: BabelifyOptions): babel.Program {
Expand Down

0 comments on commit ddcbff5

Please sign in to comment.