Open calebdoxsey opened 9 years ago
Good request, but not something I will attend to anytime soon though...
I'll put it on the roadmap!
Integrate https://github.com/evanw/esbuild ? It's written in Go.
(From the Readme) Major features:
The author of esbuild made it clear that he will not provide an API for libraries even though it was widely requested. This means minify
can't incorporate esbuild. Another fact is that esbuild is meant for a complete JS source for a website, while minify
doesn't make this assumption and works with individual files.
Otherwise:
minify
performs better in terms of performanceminify
supports up to the latest ES versionminify
as these file formats are not accepted by browsersminify
has better compression ratios than esbuildSo unfortunately, it isn't really feasible nor advantageous to integrate esbuild.
Would like to see this feature for easier debugging with the option to have inline sourcemaps.
Not sure if it's on your road map but source maps would be nice.
Competing tools already support them:
Personally I don't care so much about CSS source maps, but its pretty vital for Javascript debugging. Unfortunately source map generation can be tricky, especially when merging multiple files or going through several layers. (coffescript -> javascript -> merged javascript -> compressed javascript)