Skip to content

Suggestion: CSS @import statements intellisense #3720

@PindaPixel

Description

@PindaPixel

Right now I'm very satisfied with using CSS modules in single file components, but the intellisense doesn't seem to extend to imported modules:

<template>
    <div :class="$style['my-class']"></div>
</template>
<style module>
/* imagine this contains .my-class */
@import url("./styles/animation.css"); 

.some-class {
...
}
</style>

It works correctly and the language tools don't scream because $style is Record<string, string> & { 'some-class': string }, but it would be nice if the $style type takes static imports into consideration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions