We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a9837f commit d73bfabCopy full SHA for d73bfab
src/plugin/babel.ts
@@ -2,6 +2,7 @@ import { parseSync } from "@babel/core";
2
import traverse from "@babel/traverse";
3
4
export const isEntryFile = (src: string, filename: string) => {
5
+ // TODO try lighter approach
6
const ast = parseSync(src, { filename })!;
7
let isEntry = false;
8
traverse(ast, {
0 commit comments