Commit c4c67f6
committed
Wrap the uglifier compressor with harmony support
* Allows es6 code that regular Uglifier doesn't support
* Avoids requiring Uglifier in all rails processes at application startup.
* Uglifier requires a js runtime such as node
* JS runtime can continue to be only available in development and for production pre-compilation
This is a better solution than #9244
Note, the original es6 workaround suggested by Uglifier is to use this harmony support:
https://www.github.com/lautis/uglifier/issues/1271 parent 7a5da2e commit c4c67f6
2 files changed
+22
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments