You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
persisting javascripts/bundle.jsWarning: Unable to compress and minify it, error: Unexpected token: name (continues). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).
[done]
Possibly having to do something with this issue. If I follow their suggestion, my ES6 JS is properly compressed and minified again.
with self.js_compressor = Uglifier.new(harmony: true)
I don't really know for certain if I am properly using ES6, mixing it up with old school JS or doing something else wrong, but this helped solve my issue!
If you want a PR for this, I can make one.
The text was updated successfully, but these errors were encountered:
I saw this warning being thrown by Wagon.
Possibly having to do something with this issue. If I follow their suggestion, my ES6 JS is properly compressed and minified again.
I've replaced
steam/lib/locomotive/steam/initializers/sprockets.rb
Line 46 in 67a5c77
self.js_compressor = Uglifier.new(harmony: true)
I don't really know for certain if I am properly using ES6, mixing it up with old school JS or doing something else wrong, but this helped solve my issue!
If you want a PR for this, I can make one.
The text was updated successfully, but these errors were encountered: