From 35ffb3431edb8cfaf8929a640940b3541fe01294 Mon Sep 17 00:00:00 2001 From: F-loat <945852046@qq.com> Date: Sat, 21 Apr 2018 11:47:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E4=B8=8D=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E7=9A=84=20moduleId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/loader.js b/lib/loader.js index c4d00c3..156d54d 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -255,7 +255,7 @@ module.exports = function (content) { if (script) { // for mp js // 需要解析组件的 components 给 wxml 生成用 - script = compileMPScript.call(this, script, mpOptions, moduleId) + script = compileMPScript.call(this, script, mpOptions, hasScoped && moduleId) if (options.esModule) { output += script.src