Skip to content
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

Problem of minimizing bundle size #11270

Closed
1 task
raymondsze opened this issue May 7, 2018 · 2 comments
Closed
1 task

Problem of minimizing bundle size #11270

raymondsze opened this issue May 7, 2018 · 2 comments
Labels
component: list This is the name of the generic UI component, not the React module! v1.x

Comments

@raymondsze
Copy link
Contributor

  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

import { ListItem } from 'material-ui'
should convert to
import ListItem from 'material-ui/List/ListItem

Current Behavior

import { ListItem } from 'material-ui'
should convert to
import ListItem from 'material-ui/ListItem

Steps to Reproduce (for bugs)

.babelrc

{
  "presets": [
    "next/babel"
  ],
  "plugins": [
    ["transform-imports", {
      "material-ui": {
          "transform": "material-ui/${member}",
          "preventFullImport": true
      },
      "lodash": {
          "transform": "lodash/${member}",
          "preventFullImport": true
      }
    }]
  ]
}

Context

The ListItem is not under the material-ui module directly but material-ui/List.
If I want to reduce the bundle size, how can I achieve the expected behavior?
Should a 'proxy' ListItem.js exists in the material-ui module directly to solve this kind of issue?

Your Environment

Tech Version
Material-UI v1.0.0-beta.45
React
browser
etc
@raymondsze
Copy link
Contributor Author

Sorry, seems #11249 is related.

@oliviertassinari
Copy link
Member

@raymondsze Right, we will take care of it with stable v1, shouldn't take more than 2 weeks.

@oliviertassinari oliviertassinari added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 20, 2022
@zannager zannager added component: list This is the name of the generic UI component, not the React module! v1.x and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: list This is the name of the generic UI component, not the React module! v1.x
Projects
None yet
Development

No branches or pull requests

3 participants