Skip to content

Commit 5ffea9a

Browse files
committed
fix: filename not passed causing fail alias resolve
1 parent 78d67a1 commit 5ffea9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/transform.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export async function transformVue(
9191
fileName: string,
9292
options: TransformOptions = {},
9393
) {
94-
const parsedVue = parse(code)
94+
const parsedVue = parse(code, { filename: fileName })
9595

9696
if (
9797
parsedVue.descriptor.script?.lang !== 'ts'
@@ -123,7 +123,7 @@ export async function transformVue(
123123
file,
124124
)
125125
}
126-
126+
127127
const { content } = compileScript(parsedVue.descriptor, {
128128
id: fileName,
129129
fs: {

0 commit comments

Comments
 (0)