Skip to content

Small syntax update for including style-loader#9076

Closed
rfreling wants to merge 6 commits into
react:masterfrom
rfreling:patch-1
Closed

Small syntax update for including style-loader#9076
rfreling wants to merge 6 commits into
react:masterfrom
rfreling:patch-1

Conversation

@rfreling

Copy link
Copy Markdown

Hi team 👋

This simple syntax change will allow for other CRA extension utilities (like customize-cra) to add options the 'style-loader'. Specifically the "insert" prop (fka "insertInto") can be quite useful.

E.g. https://github.com/arackaf/customize-cra/blob/master/api.md#adjuststyleloaderscallback

It's possible that preventing overrides to the 'style-loader' configuration was intentional as a way to prevent downstream webpack/hot-update bugs, but I haven't run into any when running this update in an ejected create-react-app. So would appreciate any veteran thoughts on whether this is safe to update.

Thanks for considering!

This simple syntax change will allow for other CRA extension utilities (like customize-cra) to add options the 'style-loader'.

E.g. https://github.com/arackaf/customize-cra/blob/master/api.md#adjuststyleloaderscallback
@facebook-github-bot

Copy link
Copy Markdown

Hi @rfreling!

Thank you for your pull request and welcome to our community.We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.

In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@rfreling

Copy link
Copy Markdown
Author

Looks like each of the Azure Devops Pipeline test run reports since Tuesday are failing with the same error:

Cannot find module '@babel/helper-create-regexp-features-plugin'

So, likely independent of this PR?

@mrmckeb

mrmckeb commented May 29, 2020

Copy link
Copy Markdown
Contributor

Hi @rfreling, can you please rebase? That should fix the CI issue.

Comment thread packages/react-scripts/config/webpack.config.js Outdated
@mrmckeb mrmckeb added this to the 4.0 milestone May 29, 2020
ianschmitz and others added 3 commits May 30, 2020 09:33
* Fix dotenv file loading order

* tests: fix failing env tests

* tests: fix more failing tests

Co-authored-by: Brody McKee <mrmckeb@hotmail.com>
@rfreling rfreling requested a review from amyrlam as a code owner May 30, 2020 14:33
@rfreling

Copy link
Copy Markdown
Author

Hi @rfreling, can you please rebase? That should fix the CI issue.

Worked like a charm, thanks @mrmckeb

@mrmckeb

mrmckeb commented May 31, 2020

Copy link
Copy Markdown
Contributor

Hi @rfreling, it looks like your rebase failed. I see commits/changes from outside of your branch. Can you take a look at cleaning this up? Sorry for the troubles.

@rfreling

rfreling commented Jun 2, 2020

Copy link
Copy Markdown
Author

@mrmckeb – No problem, my bad.

It was simpler to create a new PR, so I did that here -> #9100

@eddiemonge

Copy link
Copy Markdown
Contributor

@rfreling want to close this one since you opened #9100 ?

@rfreling rfreling closed this Jun 3, 2020
@rfreling rfreling deleted the patch-1 branch June 3, 2020 19:07
@lock lock Bot locked and limited conversation to collaborators Jun 24, 2020
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.

6 participants