Skip to content

Commit 78db8a8

Browse files
committed
fix for css v-bind
1 parent 01c8138 commit 78db8a8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: src/index.ts

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

Diff for: 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)