Skip to content

Prefixer plugin conflicts with monolytic enhancer #924

@houd1ni

Description

@houd1ni

Hi, @robinweser ! I'm creator of fela-vue integration suite.

Regarding fela-monolithic and fela-plugin-prefixer.

I have briefly searched for the issue, but no success btw.

I'm working on unit testing of my current project, and it looks that it's much better to use monolithic enhancer to locate nodes.
Hence I haven't touch my to-go plugin set, the prefixer plugin is still enabled.

Here is generateMonolithicClassName function that lookups for className prop to set it kinda custom, that I want to use. But the prefixer plugin prefixes the prop, hence the monolithic cannot pick it up. Only disabling of the prefixer resolves the issue. Maybe add some option to leave className prop as-is for prefixer or not touch the prop at all ?

This screenshot of the disaster:

Image

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