Skip to content

v2.6.0

Compare
Choose a tag to compare
@j4k0xb j4k0xb released this 10 Jul 12:47
· 227 commits to master since this release

Features

  • unpack webpack 0.11 and development builds
  • handle external browserify dependencies without an id like { 'vscode': undefined }
  • allow stdin/stdout for cli: echo '1+1' | webcrack, webcrack input.js > output.js
  • dedicated debug logger which is disabled when using webcrack as a dependency
  • convert JSON.parse("[1,2,3]") to [1, 2, 3]
  • detect for (; []; ) { as infinite loop
  • detect inverted dead code conditions: if (!("abc" !== "xyz")) {
  • path mappings not starting with ./ (e.g. { lodash: m.numericLiteral(4) }) are now treated as node_modules

Bug Fixes

  • detect top-level bundle first (previously it always tried to find a nested webpack bundle before browserify)
  • apply bundle transforms regardless of saving (when using the js api)
  • stricter readonly object checks for control flow flattening (ignore const a = { x: 1 }; a.x++; etc)

Performance

  • 40% faster string array and decoder renaming
  • faster unminify/unpack transforms