Skip to content

Commit

Permalink
fix(loader): 修复vue-loader不能处理箭头函数的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
it1011 committed Feb 7, 2018
1 parent ef19cce commit 8e76ee4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"style-loader": "^0.18.2",
"tslint-loader": "^3.5.3",
"uglifyjs-webpack-plugin": "^1.1.6",
"vue-loader": "^13.3.0",
"vue-loader": "^14.1.1",
"vue-style-loader": "^3.0.1",
"webpack-bundle-analyzer": "^2.8.2"
},
Expand Down
6 changes: 5 additions & 1 deletion rules/vue-rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ module.exports = {
options: {
loaders: {
css: generatorLoaders(),
sass: generatorLoaders('sass')
sass: generatorLoaders('sass'),
js: {
loader: 'babel-loader',
options: require("../helpers/babel-config.js")
}
},
transformToRequire: {
video: 'src',
Expand Down

0 comments on commit 8e76ee4

Please sign in to comment.