madskristensen / WebEssentials2013

Visual Studio extension
http://vswebessentials.com
Other
945 stars 252 forks source link

ES6 Computed Properties in object initializer fails in minification #2018

Open JimAnkrom opened 8 years ago

JimAnkrom commented 8 years ago

Below is valid ES6 syntax (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer )

Minifier reports back an error "Expected '}': [", which leads me to believe computed properties are not yet supported.

` let prop = 'hello'; let obj = {

}; `