diff --git a/package.json b/package.json index 842084e..af353e7 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/rules/vue-rule.js b/rules/vue-rule.js index 5849689..25b5c8e 100644 --- a/rules/vue-rule.js +++ b/rules/vue-rule.js @@ -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',