Skip to content

Commit 480d693

Browse files
committed
release v0.5.5
1 parent 990a3bd commit 480d693

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

lib/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module.exports = function (content) {
5555
// var isServer = this.options.target === 'node'
5656
// var isServer = false
5757
var loaderContext = this
58-
var query = loaderUtils.getOptions(this)
58+
var query = loaderUtils.getOptions(this) || {}
5959
var params = this.resourceQuery && loaderUtils.parseQuery(this.resourceQuery)
6060
var options = this.options.__vueOptions__ = Object.assign({}, this.options.vue, this.vue, query)
6161
var filePath = this.resourcePath

lib/selector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var loaderUtils = require('loader-utils')
44

55
module.exports = function (content) {
66
this.cacheable()
7-
var query = loaderUtils.getOptions(this)
7+
var query = loaderUtils.getOptions(this) || {}
88
var filename = path.basename(this.resourcePath)
99
var parts = parse(content, filename, this.sourceMap)
1010
var part = parts[query.type]

lib/style-rewriter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = function (css, map) {
4141
this.cacheable()
4242
var cb = this.async()
4343

44-
loaderUtils.getOptions(this)
44+
var query = loaderUtils.getOptions(this) || {}
4545
var options = this.options.__vueOptions__
4646
var postcssOptions = options.postcss
4747

lib/template-compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var beautify = require('js-beautify').js_beautify
5454
module.exports = function (html) {
5555
this.cacheable()
5656
var isProduction = this.minimize || process.env.NODE_ENV === 'production'
57-
var query = loaderUtils.getOptions(this)
57+
var query = loaderUtils.getOptions(this) || {}
5858
// var isServer = this.options.target === 'node'
5959
// var isServer = false
6060
var vueOptions = this.options.__vueOptions__

lib/template-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var extname = require('path').extname
55
module.exports = function (content) {
66
this.cacheable && this.cacheable()
77
var callback = this.async()
8-
var opt = loaderUtils.getOptions(this)
8+
var opt = loaderUtils.getOptions(this) || {}
99
var vue = this.options.__vueOptions__
1010
if (vue && vue.template) {
1111
for (var key in vue.template) {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "weex-vue-loader",
3-
"version": "0.5.4",
3+
"version": "0.5.5",
44
"description": "Vue.js component loader for Webpack",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)