butternut icon indicating copy to clipboard operation
butternut copied to clipboard

The fast, future-friendly minifier

Results 66 butternut issues
Sort by recently updated
recently updated
newest added

I mimicked UglifyJS except for the last test case with wrapped new expressions. For `new new X().Y().z` UglifyJS output: `new((new X).Y().z)` _wrong_ butternut output: `(new (new X).Y).z` _correct_ To test...

In other words `new Date().getTime()` becomes `new Date.getTime` which doesn't mean the same thing.

```bash The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string Butternut generated invalid JavaScript. Please raise an issue at https://github.com/Rich-Harris/butternut/issues Errored minifying code near line 0, column...

Hi, is this project still actively maintained? It seems there was no activity since mid 2017.

Hi! I tried to squash [this file](https://github.com/pakastin/redom/blob/master/dist/redom.js) and got an error: > The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string I tried to run `squash dist/redom.js...

I'm trying to minify a large file (330,000 lines) that has in been produced by combining a large number of source files processed by babel, but something's confused Butternut and...

I just wanted to say **thank you**: UglifyJS 3 somehow breaks my code in a certain device (SSSP3, which is impossible to debug), but Butternut works! It's also way faster!!...

I have a repo, https://github.com/backspaces/as-app3d, using squash to minify Rollup bundles. Using the minified bundle fails with a browser error. The minified bundle is mal-formed. In the example I give...