Commit 7a5da2e
committed
Use uglifier harmony mode to handle es6 syntax with rails 7
We were getting the following error in production mode:
```
RAILS_ENV=production bundle exec rake evm:compile_assets
...
rake aborted!
Uglifier::Error: Unexpected token: punc ((). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).
```
Note, this change makes all rails processes in production and test load uglifier even if they'll never
use it. This is because we're eager loading it, instead of delay loading it via a symbol.
It sounds like we can possibly resolve this by figuring out which es6 syntax it doesn't like
See https://www.github.com/lautis/uglifier/issues/1271 parent 40cd8fc commit 7a5da2e
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
0 commit comments