Env: Smart View SDK v25.4
It seems like js files in nuc is using ES6+ syntax such as array spread operator. This leads to grunt compile to fail with below error
Error: Parse error using esprima for file: lib/src/nuc/lib/less.js
Error: Line 90: Unexpected token ...
Has anyone else faced similar issue, and is aware of a recommended solution from OT.
P.S. I'm aware of a fork of requieJS by @Ferdinand Prantl, but not sure if we can use it to support ES6+ features in smart view development especially now when OT itself shipping files which uses ES6 so we would expect OT also provide a transpiler, or recommend one, which supports latest JS features.