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 Jan 29, 2025
1 parent 01c8138 commit 78db8a8
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 @@ -165,6 +165,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 78db8a8

Please sign in to comment.