rollup-plugin-purs icon indicating copy to clipboard operation
rollup-plugin-purs copied to clipboard

Replace function expressions with arrow expressions

Open k4b7 opened this issue 6 years ago • 0 comments

I was experimenting and it does cut down on the bundle size. It looks like terser-js can do this for anonymous function expressions. My guess is that it won't do it for named ones. We could add this for all functions that start with a lowercase letter b/c those are known to not be constructors and thus don't need access to this. Would you be interested in a PR for this?

k4b7 avatar Mar 17 '19 16:03 k4b7