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 9b15c20 commit 3f9af0bCopy full SHA for 3f9af0b
src/index.ts
@@ -357,6 +357,7 @@ function getExtname(file: string): string {
357
}
358
359
export function getParserSync(file: string, options?: ParserOptions): Parser {
360
+ file = Path.resolve(file)
361
const parentDir = Path.dirname(file)
362
const extname = getExtname(file)
363
const parser = dirParserCache.getSync(
@@ -418,6 +419,7 @@ export async function getParserAsync(
418
419
file: string,
420
options?: ParserOptions
421
): Promise<Parser> {
422
423
424
425
0 commit comments