-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug - [All] - [react core esm packages should explicitely import the .mjs files from react-styles] #8871
Milestone
Comments
@dgutride thoughts? cc @nicolethoen |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the problem
In cockpit we are importing files like import "@patternfly/react-core/dist/esm/components/Button/index.js";
I was recently analyzing the bundled output and noticed that the files that are imported from react-styles are not the .mjs ones but the plain CommonJS. This results in the use of 'require' instead of 'import'.
Expected behavior
I expect that the esm/ directory imports directly from the .mjs files from react-styles.
Is this issue blocking you?
No
The text was updated successfully, but these errors were encountered: