Skip to content

Vue 2 Deep Selectors issue with LightningCSS #114

@level7in

Description

@level7in

When using Vue 2 with LightningCSS (via vite.config.ts), the following warning appears:

[lightningcss] ** is not recognized as a valid pseudo-class selector

This occurs because LightningCSS doesn't recognize the pseudo as a valid pseudo-class, even though it's a valid Vue.js scoped CSS feature.

We can apply the same warning suppression mechanism from vite-plugin-vue to vite-plugin-vue2. The fix suppresses the specific warning about v-deep and deep pseudo-classes in LightningCSS.

There is a repo reproduce

I'm preparing a PR.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions