diff --git a/lib/loader.js b/lib/loader.js index e3756f69f..bb78486d6 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -28,8 +28,8 @@ module.exports = function (content) { this.cacheable() var loaderContext = this - var options = this.vue || this.options.vue || {} var query = loaderUtils.parseQuery(this.query) + var options = Object.assign({}, this.options.vue, this.vue, query) var filePath = this.resourcePath var fileName = path.basename(filePath) var moduleId = '_v-' + hash(filePath)