Are there any JS minifiers for BundleTransformer that support EcmaScript 6? I have tried installing:
- BundleTransformer.Closure
- BundleTransformer.YUI
- BundleTransformer.UglifyJs
But neither seem to handle the string template syntax of ES6, such as:
`Hello ${world}`
Am I missing something, or is it time to upgrade to Node + X?
Tormod!
Suppose you have the following code:
Only two minifiers from the Bundle Transformer can process it:
MicrosoftAjaxJsMinifier
from BundleTransformer.MicrosoftAjax. It just minify a ES6 code.ClosureLocalJsMinifier
from BundleTransformer.Closure with the following configuration settings:The transpilation from ES6 to ES3 will be made, and then the ES3 code will be minified. In addition, to the
languageOutput
attribute can be set the following values:EcmaScript5
andEcmaScript5Strict
.