Skip to content

Commit 462938a

Browse files
committed
fix for css v-bind
1 parent 11c886c commit 462938a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ function parseAsSFC(code: string, options: ParserOptions) {
164164
yield "<template>"
165165
yield getParserLangFromSFC(rootAST)
166166
}),
167+
project: undefined,
167168
})
168169
}
169170
result.ast.templateBody = templateBody

test/parser-options-project.js

+5
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ describe("use `project: undefined` when parsing template script-let", () => {
6363
</MyComponent>
6464
</div>
6565
</template>
66+
<style scoped>
67+
.a {
68+
color: v-bind(color)
69+
}
70+
</style>
6671
`,
6772
{
6873
project: true,

0 commit comments

Comments
 (0)