From 26c904ffb56c0a1574d6a7a2d5bbb7ef05a15623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Sat, 11 Aug 2018 00:08:23 +0200 Subject: [PATCH] [lab] Depend on @babel/runtime. (#12470) @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. --- packages/material-ui-lab/package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/material-ui-lab/package.json b/packages/material-ui-lab/package.json index b69cb9728d35d5..426a759df709de 100644 --- a/packages/material-ui-lab/package.json +++ b/packages/material-ui-lab/package.json @@ -38,7 +38,9 @@ "react": "^16.3.0", "react-dom": "^16.3.0" }, - "dependencies": {}, + "dependencies": { + "@babel/runtime": "7.0.0-beta.42" + }, "devDependencies": {}, "sideEffects": false, "publishConfig": {