Skip to content

Doesn't work anymore with new import * as style from './component.scss #98

@Yegorich555

Description

@Yegorich555

Webpack css-loader introduced breaking change from version 7.0: https://github.com/webpack-contrib/css-loader/releases/tag/v7.0.0
Before:

import style from "./style.css";

console.log(style.myClass);

After:

import * as style from "./style.css";

console.log(style.myClass);

Expected: eslint-plugin-css-modules throws error if style.myClass isn't defined when we use new import style import * as style from "./style.css";

Actual: eslint-plugin-css-modules ignores such types of imports

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