Skip to content

Conversation

swashcap
Copy link
Contributor

👋 Hello! I'm reading through react-scripts' Webpack configuration to learn a little bit more about Webpack. Thanks for the ample comments! It's super helpful.

I noticed this unneeded Object.assign in a .css loader's options, so thought I'd remove it.

  • Problem: Using Object.assign in shouldUseRelativeAssetPaths falsey case adds a lil bit of an unneeded function call
  • Solution: Remove Object.assign and add {} to the ternary false expression
  • Testing: ?

@iansu iansu added this to the 3.0.1 milestone Apr 29, 2019
@iansu iansu merged commit a2ae8a7 into facebook:master Apr 29, 2019
@iansu
Copy link
Contributor

iansu commented Apr 29, 2019

Thanks!

@swashcap swashcap deleted the fix-remove-unneeded-object-assign branch April 29, 2019 17:24
@lock lock bot locked and limited conversation to collaborators May 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants