and use the link, I see the following minified output in both live server and static file:
(function(){let a = "asdf";console.log(a)})()
But if I use the same file in a slice and use resources.Concat, in live server I see proper minified output. But in static generated file, I see the below:
The issue is that the file is minified properly if processed separately. But when concatenated with other files and minified, the output in static generated file is not minified properly.