babel-loader preset[es2015] 不支持spread properties问题解决

添加插件: babel-plugin-transform-object-rest-spread

loaders: [
            {
                test: /\.js?$/,
                loader: 'babel-loader',
                exclude: /node_modules/,
                query: {
                    presets: ['es2015'],
                    plugins: [require('babel-plugin-transform-object-rest-spread')]
                }
            }
]

你可能感兴趣的:(babel-loader preset[es2015] 不支持spread properties问题解决)