Skip to content

Commit 0f0204f

Browse files
authored
fix: explicit exports from styled-components (#5)
Fix the usage in CommonJS world (also on CodeSandbox) Closes #4
1 parent 15a3438 commit 0f0204f

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

packages/styled-components/.size-snapshot.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@
1919
"gzipped": 1185
2020
},
2121
"dist/xstyled.es.js": {
22-
"bundled": 4932,
23-
"minified": 2948,
24-
"gzipped": 1109,
22+
"bundled": 5131,
23+
"minified": 3134,
24+
"gzipped": 1231,
2525
"treeshaked": {
2626
"rollup": {
2727
"code": 2013,
2828
"import_statements": 295
2929
},
3030
"webpack": {
31-
"code": 3050
31+
"code": 3015
3232
}
3333
}
3434
},
3535
"dist/xstyled.cjs.js": {
36-
"bundled": 5302,
37-
"minified": 3232,
38-
"gzipped": 1171
36+
"bundled": 6842,
37+
"minified": 4520,
38+
"gzipped": 1361
3939
}
4040
}
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
export * from 'styled-components'
1+
export {
2+
createGlobalStyle,
3+
isStyledComponent,
4+
keyframes,
5+
ServerStyleSheet,
6+
StyleSheetConsumer,
7+
StyleSheetContext,
8+
StyleSheetManager,
9+
ThemeConsumer,
10+
ThemeContext,
11+
ThemeProvider,
12+
withTheme,
13+
__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS,
14+
} from 'styled-components'
15+
216
export { css } from './css'
317
export { Box } from './Box'
418
export { styled as default } from './styled'

0 commit comments

Comments
 (0)