Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.

Commit 0403949

Browse files
committed
fix(index): pass filename into parser
1 parent 14e58d0 commit 0403949

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const expectAttribute = (node, attribute, { PluginError }) => {
1616

1717
const compileComponent = (src, ctx, props) =>
1818
readFile(src, 'utf8')
19-
.then(ctx.parser)
19+
.then(text => ctx.parser(text, ctx.filename))
2020
.then(componentTree =>
2121
pReduce(
2222
ctx.plugins,

0 commit comments

Comments
 (0)