-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
react-scripts@2 final blockers #5141
Comments
should we remove integration for #4563 |
updated |
It sounds like #5140 has been resolved and is not a bug. |
Yeah, but it's still crappy. Can we disable that somehow? There's no such thing as "unused" CSS when its imported. |
I guess that's a webpack question. I think that's just part of their tree-shaking implementation though. Technically this is a bug in the third-party package. They've declared that their package is side effect free when it's really not. |
Sure, but |
webpack/webpack#6571 would help with this. The only other workarounds would be to:
Edit: |
I'm okay with switching to this behavior as long as migration notes mention it as potential pitfall and explain what to tell library authors. |
@edmorley can you send a PR for this, please? |
This is what webpack should do by default IMO. There's no way for CSS file to "know" if it's effectful. Only the loader can tell that since loader determines how to interpret it. Side-effectfulness of style-loader should've "marked" the CSS file somehow. |
I really hope react-scripts@2 can be supports "less" & "ts" directly 💯 👍 |
Added a few things here. |
Dropped remaining items in #5190, tagged with correct milestone. |
Let's just keep track in one list so we don't forget.
Code Blockers
yarn upgrade
before upgradingreact-scripts
would probably fix this, or we can file a bug with yarnTypeError: Cannot read property 'bind' of undefined when using Flow #5176 (comment)
Docs Blockers
Docs Follow-ups
/* autoprefixer grid: on */
for CSS gridThe text was updated successfully, but these errors were encountered: