Skip to content

Commit

Permalink
fix(vue-scoped): Scope only takes effect for vue files (#3661)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Mar 28, 2024
1 parent 4535639 commit 264436d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/modes/vue-scoped.ts
Expand Up @@ -26,7 +26,7 @@ export function VueScopedPlugin({ uno, ready }: UnocssPluginContext): Plugin {
)
},
transform(code, id) {
if (!filter(id))
if (!filter(id) || !id.endsWith('.vue'))
return
return transformSFC(code)
},
Expand Down

0 comments on commit 264436d

Please sign in to comment.