Skip to content

Commit

Permalink
fix: explicit exports from styled-components (#5)
Browse files Browse the repository at this point in the history
Fix the usage in CommonJS world (also on CodeSandbox)

Closes #4
  • Loading branch information
gregberge committed May 28, 2019
1 parent 15a3438 commit 0f0204f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
14 changes: 7 additions & 7 deletions packages/styled-components/.size-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@
"gzipped": 1185
},
"dist/xstyled.es.js": {
"bundled": 4932,
"minified": 2948,
"gzipped": 1109,
"bundled": 5131,
"minified": 3134,
"gzipped": 1231,
"treeshaked": {
"rollup": {
"code": 2013,
"import_statements": 295
},
"webpack": {
"code": 3050
"code": 3015
}
}
},
"dist/xstyled.cjs.js": {
"bundled": 5302,
"minified": 3232,
"gzipped": 1171
"bundled": 6842,
"minified": 4520,
"gzipped": 1361
}
}
16 changes: 15 additions & 1 deletion packages/styled-components/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
export * from 'styled-components'
export {
createGlobalStyle,
isStyledComponent,
keyframes,
ServerStyleSheet,
StyleSheetConsumer,
StyleSheetContext,
StyleSheetManager,
ThemeConsumer,
ThemeContext,
ThemeProvider,
withTheme,
__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS,
} from 'styled-components'

export { css } from './css'
export { Box } from './Box'
export { styled as default } from './styled'

0 comments on commit 0f0204f

Please sign in to comment.