| Only React | React + [email protected] | React + [email protected] |
|------------|---------------------|---------------------|
| 97 KiB | 293 KiB | 594 KiB |
import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from '@blueprintjs/core';
const container = document.getElementById('app-container');
ReactDOM.render((<div><Button>123</Button></div>), container);
webpack: https://github.com/AveVlad/palantir_blueprint_playground/blob/master/common/webpack.common.js
git clone https://github.com/AveVlad/palantir_blueprint_playgroundnpm installnode bundle_size.shell.js -inode bundle_size.shell.js -b | grep "main"Only React vs [email protected]
Why such a big difference?
Only React vs [email protected]
Why so much a big difference? 馃
Blueprint is awesome lib, Thanks!
@AveVlad the big difference is from the new icons package: a few hundred kb of SVG paths in the JS files.
the upside is that you should no longer have to load the icon fonts, so the net difference is roughly zero.
Can icons package be tree-shaked during build?
@rayshan not currently, but we're definitely open to suggestions!
please discuss icon tree-shaking on #2193.
closing in favor of #2193
Most helpful comment
Can icons package be tree-shaked during build?