We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 134a353 commit 8028617Copy full SHA for 8028617
lib/loader.js
@@ -29,13 +29,13 @@ module.exports = function (content) {
29
this.cacheable()
30
var loaderContext = this
31
var query = loaderUtils.getOptions(this) || {}
32
- var options = Object.assign({}, this.options.vue, this.vue, query)
+ var options = Object.assign({}, this.options && this.options.vue, this.vue, query)
33
var filePath = this.resourcePath
34
var fileName = path.basename(filePath)
35
var moduleId = '_v-' + hash(filePath)
36
37
// respect user babel options
38
- if (this.options.babel) {
+ if (this.options && this.options.babel) {
39
defaultLoaders.js = 'babel-loader'
40
}
41
0 commit comments