Commit b7af4c6
committed
feat(build): enable code splitting, optimize bundle, and export theme
utilities
- Configure webpack to output individual bundles for each component
(code splitting)
- Add externals for peer dependencies (react, react-dom,
styled-components, react-modal)
- Export color palette and sizing utilities from main entry point
- Document required peer dependencies in README
- Reduce bundle size and improve tree shaking/code splitting for
consumers1 parent 7fc1570 commit b7af4c6
File tree
6 files changed
+267
-178
lines changed- src
- components
6 files changed
+267
-178
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
5 | 25 | | |
6 | 26 | | |
7 | 27 | | |
| |||
0 commit comments