Skip to content

Provide ESM export for @patternfly/react-styles css components. #7054

@smurrayatwork

Description

@smurrayatwork

Using bundlers that support ES Modules (such as vite) require ES Module exports. Currently, all of the component .js files under @patternfly/react-styles/css/components use require on .css files. It would be better to include in addition to this another file that uses import instead.

A nice to have in addition to this es module file would be placing the @patternfly/react-styles/css directory under both @patternfly/react-styles/dist/esm and @patternfly/react-styles/dist/js . This would allow for bundlers to easily determine which .js files to use for ES modules and commonjs modules.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions