Skip to content

Commit

Permalink
fix for css v-bind
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed May 12, 2023
1 parent 11c886c commit 462938a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ function parseAsSFC(code: string, options: ParserOptions) {
yield "<template>"
yield getParserLangFromSFC(rootAST)
}),
project: undefined,
})
}
result.ast.templateBody = templateBody
Expand Down
5 changes: 5 additions & 0 deletions test/parser-options-project.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ describe("use `project: undefined` when parsing template script-let", () => {
</MyComponent>
</div>
</template>
<style scoped>
.a {
color: v-bind(color)
}
</style>
`,
{
project: true,
Expand Down

0 comments on commit 462938a

Please sign in to comment.