For some reason we were targeting es5, which results in a lot of unnecessary code in the final output. es2018 will produce a cleaner output while still having good enough compatibility. And the user always has the option of running extra compilation through their bundler.
For some reason we were targeting
es5
, which results in a lot of unnecessary code in the final output.es2018
will produce a cleaner output while still having good enough compatibility. And the user always has the option of running extra compilation through their bundler.