Skip to content

Commit

Permalink
fix: get transformToRequire from vueOptions instead of options for te…
Browse files Browse the repository at this point in the history
…mplate-compiler (#1175)
  • Loading branch information
fnlctrl authored and yyx990803 committed Mar 6, 2018
1 parent 36276c0 commit 8b912ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/template-compiler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = function (html) {
const vueOptions = this._compilation.__vueOptions__ || {}
const options = loaderUtils.getOptions(this) || {}
const needsHotReload = !isServer && !isProduction && vueOptions.hotReload !== false
const defaultModules = [transformRequire(options.transformToRequire), transformSrcset()]
const defaultModules = [transformRequire(vueOptions.transformToRequire), transformSrcset()]

const compilerOptions = {
preserveWhitespace: vueOptions.preserveWhitespace,
Expand Down

0 comments on commit 8b912ad

Please sign in to comment.