magnars / optimus

A Ring middleware for frontend performance optimization.
364 stars 23 forks source link

Transpiling to ES5 before minifying js #74

Closed the-exodus closed 1 year ago

the-exodus commented 1 year ago

This change uses babel-standalone to transform modern javascript to ES5 during minifying. This has to be done since uglify-js doesn't support any newer standards.

magnars commented 1 year ago

Excellent, thank you!

magnars commented 1 year ago

Released as optional behavior in [optimus "2023-01-29"]. See:

https://github.com/magnars/optimus#uglify-js