Open johs opened 6 years ago
Yes, it‘s known problem of CodeMirror parser, which was fixed very recently. So fix is not yet propagated to public versions of CloudWall and Ddoc Lab. I‘ll get you know when update is ready.
If template literals highlighting is critical right now, consider doing these steps:
//codemirror javascript
in plugins.js//codemirror javascript
comment with updated highlighter you got from githubNot critical:)
Easy to isloate in the js code with templates as ddoc fragments too
(d,i) => {/*{{.template.hello}}*/}
Another ES6 detail: Uglify in JS resources seems to ignore let
and const
And how about an ES6 transpiler as a feature on JS resources?:)
Uglify in JS resources seems to ignore let and const
Can you please give an example, how it looks like? Btw, do you use CloudWall or Ddoc lab standalone? And of which version?
And how about an ES6 transpiler as a feature on JS resources?
Very unlikely. I‘ve made some experiments a year ago, results where disappointing: enormously bloated code, running pretty slow.
Thanks, I use Ddoc lab 1.9.20 in CloudWall 2.2.3, couchapp build this is how a build looks like without and with uglifyer
Looks like const
screws things up.
Looks like
const
screws things up.
It doesn‘t. Your const is removed since it‘s dead code, never used. However, if you use b
somewhere in expression, it will be inlined in expression by value, since its value is precisely known during uglify )
Thanks! Uglify really smart too:)
JS syntax coloring not aware of templates in my favorite app Ddoc lab