hzoo
released this
31 Oct 14:08
·
478 commits
to master
since this release
Babili v0.0.8: Changelog for 2016-10-31
- babili: 0.0.7 => 0.0.8
- babel-preset-babili: 0.0.5 => 0.0.8
- babel-helper-to-multiple-sequence-expressions: 0.0.1 => 0.0.2
- babel-plugin-minify-dead-code-elimination: 0.0.4 => 0.1.0
- babel-plugin-minify-mangle-names: 0.0.3 => 0.0.4
- babel-plugin-minify-numeric-literals: 0.0.1 (new)
- babel-plugin-minify-simplify: 0.0.3 => 0.0.4
- babel-plugin-minify-type-constructors: 0.0.1 => 0.0.2
- babel-plugin-transform-regexp-constructors: 0.0.1 (new)
Shoutout to @boopathi for all these bug fixes, and @shinew / @erikdesjardins for their first PRs!
🚀 New Feature
-
babel-plugin-minify-numeric-literals
,babel-preset-babili
[10000, 0x000001, 0o23420, 0b10011100010000] // => [1e4, 1, 1e4, 1e4]
-
babel-plugin-transform-regexp-constructors
var x = new RegExp('\\w+\\s') // => var x = /\w+\s/
-
babel-plugin-minify-dead-code-elimination
function foo(unused) { return 1 } // => function foo() { return 1 } // To prevent this for code depending on foo.length, use keepFnArgs: true { plugins: [ ["minify-dead-code-elimination", { keepFnArgs: true }] ] }
🐛 Bug Fix
babel-plugin-minify-dead-code-elimination
babel-plugin-minify-simplify
babel-helper-to-multiple-sequence-expressions
,babel-plugin-minify-simplify
babel-plugin-minify-type-constructors
babel-plugin-minify-mangle-names
🏠 Internal
- Other
babel-plugin-minify-dead-code-elimination
- #225 Fix DCE tests with labels in separate namespace. (@boopathi)
- #218 Add more tests for DCE'ing conditional expressions. (@erikdesjardins)
babel-plugin-minify-mangle-names
babel-preset-babili
babel-plugin-transform-regexp-constructors
,babel-preset-babili
Commiters: 5
- Boopathi Rajaa (boopathi)
- Erik Desjardins (erikdesjardins)
- Henry Zhu (hzoo)
- Juriy Zaytsev (kangax)
- Shine Wang (shinew)