microsoft / ajaxmin

The Microsoft Ajax Minifier enables you to improve the performance of your Ajax applications by reducing the size of your Cascading Style Sheet and JavaScript files.
https://www.nuget.org/packages/AjaxMin
MIT License
32 stars 21 forks source link

Possible fix for ajaxmin async javascript issue, not sure how to merge into this old project #23

Open berendengelbrecht opened 1 week ago

berendengelbrecht commented 1 week ago

There is a known issue with async javascript code in the Ajax minifier that we encountered this week. We use AjaxMin.dll in our build pipeline tooling, it would be difficult to replace. Because of that, I looked in to the issue and I think it is fixed.

As far as I could see, the newest AjaxMinDll code has only one single issue with async javascript code: "await " is output as "await;" in the minified output code. I have implemented a fix in the AjaxMinDll source files in attached zip. Now our async code works as expected. AjaxMinDll-JavaScript-await.zip To apply my fix, overwrite latest master files in AjaxMinDll\JavaScript with the files in my zip and recompile.

tcsaddul commented 6 days ago

FYI, there is new fork of AjaxMin: https://github.com/trullock/NUglify