Skip to content

Commit d73bfab

Browse files
committed
Update index.ts
1 parent 2a9837f commit d73bfab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plugin/babel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { parseSync } from "@babel/core";
22
import traverse from "@babel/traverse";
33

44
export const isEntryFile = (src: string, filename: string) => {
5+
// TODO try lighter approach
56
const ast = parseSync(src, { filename })!;
67
let isEntry = false;
78
traverse(ast, {

0 commit comments

Comments
 (0)