Skip to content

Support ESM import syntax for plugins #733

Closed as not planned
Closed as not planned
@theoludwig

Description

@theoludwig

What is the current behavior?

Currently, styled-jsx plugins can't be written with ESM imports syntax because it requires the import instead of using dynamic import syntax.

The problematic line of code is:

let p = require(plugin)

What is the expected behavior?

styled-jsx should be able to work with plugins written with ESM.

Related: Thream/styled-jsx-plugin-sass#68

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