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

Commit 49e96e3

Browse files
authored
Merge pull request #11 from smooth-code/fix-build
fix: fix import X from 'smooth-ui/X'
2 parents 3d3e18e + 08c82d5 commit 49e96e3

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.babelrc.js renamed to babel.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ const config = {
99
],
1010
}
1111

12-
if (process.env.NODE_ENV === 'lib') {
12+
if (process.env.BABEL_ENV === 'lib') {
1313
module.exports = Object.assign({}, config, {
1414
plugins: [
1515
...config.plugins,
1616
['@babel/plugin-transform-modules-commonjs', { loose: true }],
1717
],
1818
})
19-
} else if (process.env.NODE_ENV === 'rollup') {
20-
module.exports = Object.assign({}, config, {
21-
plugins: [...config.plugins, '@babel/plugin-external-helpers'],
22-
})
23-
} else if (process.env.NODE_ENV === 'test') {
19+
} else if (process.env.BABEL_ENV === 'rollup') {
20+
module.exports = config
21+
}
22+
23+
if (process.env.NODE_ENV === 'test') {
2424
module.exports = Object.assign({}, config, {
2525
plugins: [
2626
...config.plugins,

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ export { default as Switch } from './Switch'
2525
export { default as Textarea } from './Textarea'
2626
export { default as Toggler } from './Toggler'
2727
export { default as Transition } from './Transition'
28+
export { default as Typography } from './Typography'
2829
export { defaultTheme }
2930
export * from './utils'

0 commit comments

Comments
 (0)