Upgrade to CRA 5, rename cjs to .cjs.js#225
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
13b6d14 to
395246f
Compare
Codecov Report
@@ Coverage Diff @@
## main #225 +/- ##
==========================================
- Coverage 82.66% 82.19% -0.48%
==========================================
Files 37 37
Lines 4004 4004
Branches 132 131 -1
==========================================
- Hits 3310 3291 -19
- Misses 688 704 +16
- Partials 6 9 +3
|
cjpillsbury
left a comment
There was a problem hiding this comment.
blocker: has this been tested against CRA 4/older webpack? I noticed all cjs bundles were removed from the react packages, and I thought the assumption was cjs was expected for those cases.
|
@cjpillsbury it's because esm builds were added to the react packages. We can remove those, if we wanted. Good call on trying it out with current CRA, let me try it out locally. |
|
And I need to resolve the merge conflict again |
395246f to
2ab9243
Compare
|
CRA4 with the two changes: #227 |
2ab9243 to
a043498
Compare
|
I've removed the addition of the esm builds for the react packages because they seem to break CRA4. |
|
The CRA build of vercel is now passing in #227: https://elements-demo-create-react-app-git-fork-gkatsev-cjs-798162-mux.vercel.app/ |
cjpillsbury
left a comment
There was a problem hiding this comment.
non-blocking nit: looks like I/you generated the updated CRA app w/npm instead of yarn so the docs changed. We should probably still recommend folks use yarn, but this is def lo pri.
Otherwise, looking 😎, tested across different apps.
Some build tools don't understand cjs file extensions yet. Notably, Create React App
a043498 to
8afa153
Compare
Supersedes #210, inspired by #224