chore: upgrade parcel to v2 (alpha) #96
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've decided to upgrade
parcel
to the v2 alpha's. We weren't able to include@testing-library/dom
in our production bundle, due to an issue withcore-js
. The issue is caused by the fact thataria-query
doesn't include a "modern" bundle, andparcel v1
is handling that in an unexpected way.Parcel v2 doesn't have this problem. So upgrading parcel will allow us to fix #65.
Some troubles did arise during upgrade, but nothing that couldn't be fixed.
I've added a
.parcelrc
file to the project root, as the postcss transformer wasn't applied out-of-the-box.We now have a proxy "index.css", as parcel no longer changes ".pcss" extensions to ".css". Which is causing troubles in the browser.
The purgecss whitelists needed to be expanded, it looks like css files in node_modules are now also purge, while previously they weren't. This might have something to do with the next point.
postcss-easy-import
has been replaced withpostcss-import
.