Skip to content
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

Migrate server to ESM #1003

Merged
merged 4 commits into from
Apr 13, 2024
Merged

Conversation

7rulnik
Copy link
Contributor

@7rulnik 7rulnik commented Apr 8, 2024

Summary

Fixes #999

Right now build process for component and sever is different — component uses rollup and server uses babel. I tried to keep it, but probably the best way in future is migration to rollup.

Test plan

image

Also I can battle-test it using our project and webpack

@@ -44,7 +44,7 @@
"react": "^16.3.0 || ^17.0.0 || ^18.0.0"
},
"dependencies": {
"@babel/runtime": "^7.7.7",
"@babel/runtime": "^7.12.18",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7.12 is the first version that introduces exports field in package.json. We need it for ESM

@7rulnik 7rulnik marked this pull request as ready for review April 8, 2024 14:43
@theKashey theKashey self-requested a review April 9, 2024 05:46
Copy link
Collaborator

@theKashey theKashey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the best solution we have so far.
Let's look forward to move everything to a single build platform. But not today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSR is broken for component v5.16.2+
2 participants