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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 5 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy