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

[lab] Depend on @babel/runtime #12470

Merged
merged 1 commit into from
Aug 10, 2018
Merged

Conversation

goto-bus-stop
Copy link
Contributor

@goto-bus-stop goto-bus-stop commented Aug 10, 2018

lab was missing a direct dependency on @babel/runtime.

It will be installed by the peerDependency on @material-ui/core, but it might also
be installed by some other module or by the consuming app. That means the
@babel/runtime that will actually be resolved lab is not guaranteed to be
the same as the one resolved by core, without an explicit dependency.

In particular, I was installing @babel/runtime@7.0.0-rc.1 in my app, which has different file paths
from beta.42, causing imports of @babel/runtime from @material-ui/lab to fail.

This patch ensures a compatible version of the runtime is always used.

@babel/runtime will also be installed by the peerDependency on @material-ui/core, but it might also
be installed by some other module or by the consuming app. That means the @babel/runtime that will
actually be resolved by @material-ui/lab is not guaranteed to be the same as the one resolved by
core, without an explicit dependency.

In particular, I was installing @babel/runtime@7.0.0-rc.1 in my app, which has different file paths
from beta.42, causing imports of @babel/runtime from @material-ui/lab to fail.

This patch ensures a compatible version of the runtime is always used.
@oliviertassinari oliviertassinari added the package: lab Specific to @mui/lab label Aug 10, 2018
@oliviertassinari oliviertassinari merged commit 26c904f into mui:master Aug 10, 2018
@oliviertassinari
Copy link
Member

@goto-bus-stop well spotted!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: lab Specific to @mui/lab
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants