Skip to content

Css class got duplicated if @import sytnax is used #1047

Open
@fa93hws

Description

@fa93hws
  • Operating System: OSX 10.15.2
  • Node Version: v10.17.0
  • NPM Version: 6.11.3
  • webpack Version: 4.41.5
  • css-loader Version: 3.4.2

Expected Behavior

"preload_fonts" which imports "font_a" which composes "font_base" and;
"preload_fonts" which imports "font_b" which composes "font_base".
On this case, the "baseFont" appears only once.

Actual Behavior

the "baseFont" module appears twice.

image

How Do We Reproduce?

https://github.com/fa93hws/duplicate-import
npm run start, open console and switch to style Editor tab.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions