Skip to content

Releases: babel/minify

[email protected]

23 May 19:47
Compare
Choose a tag to compare

[email protected] (2017-05-23)

🐛 Bug Fix

  • babel-plugin-minify-mangle-names
    • #550 Remove throwing error on unrecognized binding. (@boopathi)

💅 Polish

  • babel-plugin-minify-mangle-names

Committers: 1

[email protected]

22 May 21:49
Compare
Choose a tag to compare

[email protected] (2017-05-22)

Summary

  • Better mangling - significant improvement in output code size.
  • The preset options are flattened
  • Smoke tests
  • Use Yarn & Prettier
  • And a lot of bug fixes (refer below)

Check Benchmarks for info about how Babili compares with other minifiers for a few samples.

Updated Pacakges:

💥 Breaking Change

🚀 New Feature

  • babel-plugin-minify-mangle-names

🐛 Bug Fix

  • babel-plugin-minify-builtins
  • babel-plugin-transform-inline-consecutive-adds
  • babel-plugin-minify-mangle-names
  • babel-plugin-minify-simplify
  • babel-plugin-minify-constant-folding
  • babel-plugin-minify-builtins, babel-plugin-minify-mangle-names, babel-preset-babili
  • babel-plugin-transform-member-expression-literals, babel-plugin-transform-property-literals

💅 Polish

📝 Documentation

🏠 Internal

Chore

Committers: 8

[email protected]

03 Mar 18:05
Compare
Choose a tag to compare

[email protected] (2017-03-03)

💥 Breaking Change

  • babel-plugin-minify-empty-function

🚀 New Feature

🐛 Bug Fix

  • babel-plugin-minify-dead-code-elimination
  • babel-plugin-minify-simplify
  • babel-plugin-transform-remove-console, babel-plugin-transform-remove-debugger
  • babel-plugin-minify-mangle-names

💅 Polish

  • babel-plugin-minify-mangle-names
    • #446 Minor optimization for handling blacklisted names. (@hzlmn)
  • babel-plugin-transform-regexp-constructors

📝 Documentation

Chore

  • babili
    • #441 chore(package): add description to babili package. (@Haroenv)

Committers: 5

[email protected]

08 Feb 18:28
Compare
Choose a tag to compare

[email protected] (2017-02-08)

🐛 Bug Fix

  • babel-plugin-transform-merge-sibling-variables, babel-preset-babili
  • babel-plugin-minify-mangle-names
  • babel-plugin-minify-dead-code-elimination
    • #391 Inline hoisted, post-return declarations properly. (@kangax)
  • babel-plugin-minify-constant-folding, babel-plugin-minify-dead-code-elimination, babel-preset-babili
  • babel-plugin-minify-constant-folding
    • #384 Escape "</script" when inlining strings. (@kangax)
  • babel-plugin-transform-remove-undefined
  • babel-helper-mark-eval-scopes, babel-plugin-minify-dead-code-elimination, babel-plugin-minify-mangle-names
    • #371 Add mark eval scopes helper and deopt DCE fn unused params. (@boopathi)

📝 Documentation

  • Other
    • #401 Readme: plugin options cannot be set in babili cmd. (@probins)

Committers: 5

[email protected]

19 Jan 16:09
Compare
Choose a tag to compare

Babili v0.0.10: Changelog for 2017-01-18

  • Adds preset options
  • Fixes issue with issue babili globally
  • Fixes issue with comments not being stripped by default

🚀 New Feature

  • babel-plugin-minify-dead-code-elimination, babel-plugin-minify-mangle-names, babel-preset-babili
  • babel-preset-babili

🐛 Bug Fix

  • babel-preset-babili
    • #325 remove comments by default in babel-preset-babili. (@hzoo)
  • babili
  • babel-plugin-transform-merge-sibling-variables
  • babel-plugin-transform-regexp-constructors
  • babel-plugin-minify-dead-code-elimination
  • babel-plugin-minify-dead-code-elimination, babel-preset-babili

📝 Documentation

  • Other
    • #348 add install, removing #redundancy [skip ci]. (@hzoo)
  • babel-plugin-minify-simplify
  • babel-preset-babili

🏠 Internal

Chore

Committers: 10

[email protected]

25 Nov 22:21
Compare
Choose a tag to compare

Babili v0.0.9: Changelog for 2016-11-21

  • babili: 0.0.8 => 0.0.9
  • babel-preset-babili: 0.0.8 => 0.0.9
  • babel-plugin-minify-constant-folding: 0.0.1 => 0.0.3
  • babel-plugin-minify-dead-code-elimination: 0.1.0 => 0.1.1
  • babel-plugin-minify-infinity: 0.0.1 => 0.0.3
  • babel-plugin-minify-mangle-names: 0.0.4 => 0.0.5
  • babel-plugin-minify-simplify: 0.0.4 => 0.0.5
  • babel-plugin-transform-regexp-constructors: 0.0.1 => 0.0.4
  • babel-plugin-transform-remove-undefined: 0.0.4 (new)
  • babel-helper-evaluate-path: 0.0.3 (new)
  • babel-helper-is-nodes-equiv: (removed)

🚀 New Feature

  • babel-plugin-transform-remove-undefined
    • #197 Implemented transform-remove-undefined plugin. (@shinew)
  • babel-plugin-minify-simplify
  • babel-plugin-minify-dead-code-elimination
  • babel-plugin-minify-simplify

🐛 Bug Fix

  • babel-plugin-minify-simplify
    • #240 Fix labeled break stmt removal from last switch case. (@boopathi)
  • babel-plugin-minify-infinity
  • babel-helper-evaluate-path, babel-plugin-minify-constant-folding
    • #246 Fix path.evaluate for runtime errors in constant-folding. (@boopathi)
  • babel-plugin-transform-regexp-constructors
  • babel-plugin-transform-regexp-constructors
  • babel-plugin-minify-dead-code-elimination, babel-plugin-minify-simplify
    • #266 Fix if_return & dce ifelse..return within loops. (@boopathi)
  • babel-plugin-minify-dead-code-elimination
  • babel-plugin-minify-simplify
    • #282 Don't transform earlyReturn on function enter. (@boopathi)

🏠 Internal

  • babel-plugin-minify-simplify
  • babel-plugin-minify-dead-code-elimination
  • Benchmarks
  • babel-plugin-minify-simplify
    • #276 Remove helper, use the built-in t.isNodesEquivalent. (@hzoo)
  • Use babel preset env

Commiters: 6

[email protected]

31 Oct 14:08
Compare
Choose a tag to compare

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

    • #196 Implemented transform-regexp-constructors plugin. (@shinew)
    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
    • #220 Require blocks around single block-scope declaration. (@boopathi)
    • #202 Fix for merging of vars to successive for loop. (@boopathi)
  • 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
  • babel-plugin-minify-mangle-names
  • babel-preset-babili
    • #211 Adds babel-plugin-transform-regexp-constructors to preset.. (@shinew)
  • babel-plugin-transform-regexp-constructors, babel-preset-babili
    • #199 Integrated babel-plugin-transform-regexp-constructors into preset.. (@shinew)

Commiters: 5

[email protected]

27 Oct 19:30
Compare
Choose a tag to compare

Changelog for 2016-10-07

Bug Fix

  • babel-plugin-minify-guarded-expressions

Deps

  • babel-plugin-dead-code-elimination

Changelog for 2016-09-30

Bug Fix

Should fix windows support for the cli.

  • babel-plugin-minify-dead-code-elimination
// bail out when destructuring with a variable
const me = lyfe => {
  const [swag] = lyfe;
  return swag;
};
// var hoisting but not let/const
function foo() {
  a = 1;
  return a;
  var a;
}