Rich-Harris / butternut

The fast, future-friendly minifier
https://butternut.now.sh
MIT License
1.17k stars 17 forks source link

Warning: "The final argument to magicString.overwrite(...) should be an options object." #152

Closed loilo closed 7 years ago

loilo commented 7 years ago

Butternut uses true instead of an object as last argument to be passed to magicString.overwrite.

The warning appears only once, and only with Butternut's JavaScript API. But when you run multiple instances concurrently, your terminal will get cluttered with warnings.

I'll attach a PR to fix this.