-
Notifications
You must be signed in to change notification settings - Fork 10
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
[fixexternals] Fix how react-dom/server is imported #2272
Conversation
…e sure react-dom/server is properly imported
🦋 Changeset detectedLatest commit: fd8c85e The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
GeraldRequired Reviewers
Don't want to be involved in this pull request? Comment |
npm Snapshot: Published🎉 Good news!! We've packaged up the latest commit from this PR (0ee637b) and published all packages with changesets to npm. You can install the packages in webapp by running: ./services/static/dev/tools/deploy_wonder_blocks.js --tag="PR2272" Packages can also be installed manually by running: yarn add @khanacademy/wonder-blocks-<package-name>@PR2272 |
Size Change: -4.21 kB (-4.28%) Total Size: 94 kB
ℹ️ View Unchanged
|
A new build was pushed to Chromatic! 🚀https://5e1bf4b385e3fb0020b7073c-jvwbfjqrsi.chromatic.com/ Chromatic results:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2272 +/- ##
==========================================
+ Coverage 94.21% 95.57% +1.35%
==========================================
Files 251 251
Lines 29666 29666
Branches 1685 2458 +773
==========================================
+ Hits 27951 28352 +401
+ Misses 1710 1309 -401
Partials 5 5 see 42 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! and the packages got slightly smaller, so that's a win win, thanks! 🚢
Summary:
Turns out that the rollup plugin, autoexternals, doesn't handle sub-package improts, like
react-dom/server
. However, reading the issue report on that package, I saw a link to another, more up-to-date package, that does handle this. So I switched to that package, and now everything works as expected.I did have to explicitly use the
mjs
extension for the rollup config, but that's a small price to pay for the benefits of the new package.Issue: XXX-XXXX
Test plan:
yarn build
to see that the build works.I'll also verify the packages in webapp to check everything else is fine, though the storybook should also check out.