Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(bundle): remove d3-color via rollup alias
- Loading branch information
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// this helps us to reduce bundle size by ~10kb. d3-color is not used but can't be treeshaked in this case. | ||
|
||
const obj = {}; | ||
export const rgb = {}; | ||
export const color = {}; | ||
export const hsl = {}; | ||
export const lab = {}; | ||
export const hcl = {}; | ||
export const cubehelix = {}; | ||
export default obj; |