Skip to content
Snippets Groups Projects

Configure Rollup to ignore external dependencies

Merged Andy Summers requested to merge andrew-summers/uw-material-ui-react:rollup-config into master

Rollup is now configured to not bundle external dependencies. This allows Material-UI to be used in the project while not inflating bundle sizes or causing duplicated instances of @material-ui/styles from being included in an app.

All of this was to support using the default theme's box shadow for Contained-disabled buttons.

Screen_Shot_2019-11-01_at_10.37.25_AM

This is a backwards-incompatible change

It is no longer necessary to import createMuiTheme in your app and generate a theme from the exported configuration. Simply import theme from @uw-ui-development/uw-material-ui-react and pass it to the theme provider (<ThemeProvider theme={theme}>...</ThemeProvider>).

Please review: @ahoffmann @JJONES42

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading