When deploying my Rails app I get the following error:
rake aborted!
ExecJS::ProgramError: Unexpected token punc «(», expected punc «:» (line: 15, col: 14
I'm not sure of your build chain, but I got here by pasting the same error message into Google.
That is called 'shorthand properties' in ES2015. I'm using Babel 6 with Gulp and needed to do an npm install babel-plugin-transform-es2015-shorthand-properties --save-dev
and add that transform to my babel plugins.
.pipe(babel({
plugins: [
'transform-es2015-shorthand-properties'
]
}))
https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-shorthand-properties