Skip to content

Conversation

@TheMcMurder
Copy link
Contributor

While working on a version of react-dom-server that worked with v16 I had to make a few changes to the rollup config.

In that branch I ended up splitting up the rollup config into composable pieces. It worked really well. This change mirrors that change so that if there is a future incompatibility (like there is a V16 incompatibility) we can more easily update the configuration.

@TheMcMurder
Copy link
Contributor Author

CreateReactDomConfig

  • uses getDirFileExtraAndResolved
  • uses getCommonPlugins
  • returns rollup config

CreateReactDomServerConfig

  • uses getDirFileExtraAndResolved
  • uses getCommonPlugins
  • returns rollup config

Copy link

@internettrans internettrans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't look over every part of this but the overall refactor seems good. Assuming the tests still pass, I'm happy with it.

@TheMcMurder TheMcMurder merged commit eb45ea9 into master Feb 18, 2021
@TheMcMurder TheMcMurder deleted the rollup-config-splitup branch February 18, 2021 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants