From 5e6a324d34cf2c0fc55c3e408624f0a27e916bd3 Mon Sep 17 00:00:00 2001 From: fnlCtrl Date: Mon, 26 Feb 2018 16:08:24 +0800 Subject: [PATCH] fix: get transformToRequire from vueOptions instead of options for template-compiler --- lib/template-compiler/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/template-compiler/index.js b/lib/template-compiler/index.js index ede7b38a8..7b60c70af 100644 --- a/lib/template-compiler/index.js +++ b/lib/template-compiler/index.js @@ -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,