Skip to content

Commit 8b912ad

Browse files
fnlctrlyyx990803
authored andcommitted
fix: get transformToRequire from vueOptions instead of options for template-compiler (#1175)
1 parent 36276c0 commit 8b912ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/template-compiler/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = function (html) {
1414
const vueOptions = this._compilation.__vueOptions__ || {}
1515
const options = loaderUtils.getOptions(this) || {}
1616
const needsHotReload = !isServer && !isProduction && vueOptions.hotReload !== false
17-
const defaultModules = [transformRequire(options.transformToRequire), transformSrcset()]
17+
const defaultModules = [transformRequire(vueOptions.transformToRequire), transformSrcset()]
1818

1919
const compilerOptions = {
2020
preserveWhitespace: vueOptions.preserveWhitespace,

0 commit comments

Comments
 (0)