Closed antonmedv closed 7 years ago
This bug happens since we are not transpiling es2016+, for example template strings, which are not compatible with uglify.
We have a few options:
1) Compile code with babel (perhaps use preset-env and allow user overrides). 2) Switch to babel-minify, uglify-es or butternut. 3) Both.
What are your thoughts @antonmedv?
Both will be cool. First try uglify-js, next babel-minify.
⌘ jsize ⎇ master $ jsize react+react-dom -v
Package Initial Minified Gzipped
react + react-dom = 687 kB 145 kB 43.6 kB
⌘ jsize ⎇ babel-minify $ jsize react+react-dom -v
Package Initial Minified Gzipped
react + react-dom = 687 kB 146 kB 44.2 kB
?
One kilobite extra with babel-minify
Yeah but not much we can do about that.
Okay
Got a few bugs this this message. For example
jsize @medv/list