-
-
Notifications
You must be signed in to change notification settings - Fork 452
unexpected token (rest spread operator) #170
Copy link
Copy link
Closed
Description
Webpack Config
module.exports = {
entry: './src/public/client.jsx',
output: {
path: path.resolve(__dirname, 'public'),
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules|.cache)/,
loader: 'babel',
query: {
presets: ['react', 'es2015'],
plugins: ['syntax-decorators']
}
}
]
}
}es2015 includes object rest support, then why am I facing this issue?
UPDATE:
It starts working when i add transform-object-rest-spread to plugins.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
