From 08c82d54db905bb5fddcd72a1824d87b95444998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Tue, 29 May 2018 12:58:56 +0000 Subject: [PATCH] fix: fix import X from 'smooth-ui/X' --- .babelrc.js => babel.config.js | 12 ++++++------ src/index.js | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) rename .babelrc.js => babel.config.js (71%) diff --git a/.babelrc.js b/babel.config.js similarity index 71% rename from .babelrc.js rename to babel.config.js index 96f2c40ee..0e803e4a6 100644 --- a/.babelrc.js +++ b/babel.config.js @@ -9,18 +9,18 @@ const config = { ], } -if (process.env.NODE_ENV === 'lib') { +if (process.env.BABEL_ENV === 'lib') { module.exports = Object.assign({}, config, { plugins: [ ...config.plugins, ['@babel/plugin-transform-modules-commonjs', { loose: true }], ], }) -} else if (process.env.NODE_ENV === 'rollup') { - module.exports = Object.assign({}, config, { - plugins: [...config.plugins, '@babel/plugin-external-helpers'], - }) -} else if (process.env.NODE_ENV === 'test') { +} else if (process.env.BABEL_ENV === 'rollup') { + module.exports = config +} + +if (process.env.NODE_ENV === 'test') { module.exports = Object.assign({}, config, { plugins: [ ...config.plugins, diff --git a/src/index.js b/src/index.js index de8648480..5fe5aedf0 100644 --- a/src/index.js +++ b/src/index.js @@ -25,5 +25,6 @@ export { default as Switch } from './Switch' export { default as Textarea } from './Textarea' export { default as Toggler } from './Toggler' export { default as Transition } from './Transition' +export { default as Typography } from './Typography' export { defaultTheme } export * from './utils'