尝试用vue的单文件组件开发时,在script标签中使用export default时报错,项目已经安装了babel-loader和babel-preset-es2015,还是一直报错。webpack.js...loaders: [ { test: /\.html$/, loader: 'html-loader' }, { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/, query: { presets: ['es2015'] } }, { test: /\.vue$/, loader: 'vue' },....vue: { loaders: { js: 'babel' }},...报错:
添加回答
举报
0/150
提交
取消