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

[system] Add missing main entry for styleFunctionSx #25885

Merged
merged 2 commits into from
Apr 23, 2021

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Apr 22, 2021

We should've verified these entries to begin with (happy-path fallacy).

Can't wait to use exports field and get rid of all the aliasing and path shenanigans.

Test plan

@eps1lon eps1lon added bug 🐛 Something doesn't work package: system Specific to @mui/system labels Apr 22, 2021
@mui-pr-bot
Copy link

mui-pr-bot commented Apr 22, 2021

No bundle size changes

Generated by 🚫 dangerJS against ad9331d

@eps1lon eps1lon linked an issue Apr 22, 2021 that may be closed by this pull request
@eps1lon eps1lon marked this pull request as ready for review April 22, 2021 12:04
Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

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

Does it closes #25857?

Before

{
  "sideEffects": false,
  "module": "./index.js",
  "main": "../node/styleFunctionSx/index.js",
  "types": "./index.d.ts"
}

https://unpkg.com/browse/@material-ui/system@5.0.0-alpha.30/styleFunctionSx/package.json

After

{
  "sideEffects": false,
  "module": "../esm/styleFunctionSx/index.js",
  "main": "./index.js",
  "types": "./index.d.ts"
}

@oliviertassinari
Copy link
Member

oliviertassinari commented Apr 22, 2021

Does it closes #25857?

To answer my own question, yes. How did you link the PR with the issue? I have never seen this done in the past. I have almost didn't see it.

Screenshot 2021-04-23 at 01 15 08

@oliviertassinari
Copy link
Member

oliviertassinari commented Apr 22, 2021

How did you link the PR with the issue?

Oh, from here:

Screenshot 2021-04-23 at 01 17 05

First time I see this GitHub feature. I wonder what the others think about it. I don't like how it's easy to miss. "Closes #xxx" seems to make it more obvious, but maybe it's only a matter of habit.

@eps1lon eps1lon removed a link to an issue Apr 23, 2021
@eps1lon eps1lon linked an issue Apr 23, 2021 that may be closed by this pull request
@eps1lon eps1lon merged commit b8bb451 into mui:next Apr 23, 2021
@eps1lon eps1lon deleted the fix/system/build-layout branch April 23, 2021 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work package: system Specific to @mui/system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NodeJS v16 deprecation
3 participants