Skip to content

Make imports compatible with tsc #4049

@redallen

Description

@redallen

Imports like:

import { default as checkStyles } from '@patternfly/react-styles/css/components/Check/check';

are incompatible with tsc. We should use this instead:

import checkStyles from '@patternfly/react-styles/css/components/Check/check';

Also, cross-package imports that aren't to a generated package (react-icons, react-styles, or react-tokens) should use ESM imports to not necessarily depend on a JS build.

Default exports can be fixed in react-inline-edit-extension to help separate some cruft from #4043

Metadata

Metadata

Assignees

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