项目有引用了一个插件plugin,插件中调用了Object.entries// 项目index.js引用插件import Plugin from 'plugin';xxx...// .babelrc{ "presets": [ ["env", { "modules": false, "targets": { "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] } }], "stage-0" ], "plugins": [ "transform-vue-jsx", "transform-runtime", "syntax-dynamic-import", "transform-runtime" ]}结果报错: Object.entries is no function.然后我在webpack.config.js中添加...{ test: /\.js$/, loader: 'babel-loader', include: [resolve('src'), resolve('node_modules/plugin')]}...结果报错exports is not defined问题:请问哪里出问题?Object.entries需要添加polyfill么
添加回答
举报
0/150
提交
取消