From c695a8a6fa9ac1613ed148db11c80e1b8cb11ea4 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Tue, 10 Mar 2020 21:28:21 +0100 Subject: [PATCH] chore: add @babel/register to core - it's useful to add support to load files within storybook config. - with this you have support for .ts files! --- lib/core/package.json | 1 + yarn.lock | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/package.json b/lib/core/package.json index fec59b125ec5..95aada8bd23f 100644 --- a/lib/core/package.json +++ b/lib/core/package.json @@ -37,6 +37,7 @@ "@babel/preset-env": "^7.8.4", "@babel/preset-react": "^7.8.3", "@babel/preset-typescript": "^7.8.3", + "@babel/register": "^7.8.3", "@storybook/addons": "6.0.0-alpha.22", "@storybook/channel-postmessage": "6.0.0-alpha.22", "@storybook/client-api": "6.0.0-alpha.22", diff --git a/yarn.lock b/yarn.lock index 40e6d2eeb189..a283b3b26774 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1489,7 +1489,7 @@ "@babel/helper-plugin-utils" "^7.8.3" "@babel/plugin-transform-typescript" "^7.8.3" -"@babel/register@^7.0.0": +"@babel/register@^7.0.0", "@babel/register@^7.8.3": version "7.8.6" resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.8.6.tgz#a1066aa6168a73a70c35ef28cc5865ccc087ea69" integrity sha512-7IDO93fuRsbyml7bAafBQb3RcBGlCpU4hh5wADA2LJEEcYk92WkwFZ0pHyIi2fb5Auoz1714abETdZKCOxN0CQ==