Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
fix: fix import X from 'smooth-ui/X'
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed May 29, 2018
1 parent 3d3e18e commit 08c82d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .babelrc.js β†’ babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 08c82d5

Please sign in to comment.