From 1c721998a3da5cb8ce3641359d496831a0e5c30a Mon Sep 17 00:00:00 2001 From: shiftj18 Date: Tue, 13 Sep 2022 13:28:07 +0800 Subject: [PATCH] feat(script-loader): support platform-loader of npm --- packages/jsx2mp-loader/src/script-loader.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/jsx2mp-loader/src/script-loader.js b/packages/jsx2mp-loader/src/script-loader.js index 13706694..da59f61e 100644 --- a/packages/jsx2mp-loader/src/script-loader.js +++ b/packages/jsx2mp-loader/src/script-loader.js @@ -236,7 +236,8 @@ module.exports = function scriptLoader(content) { content ].join('\n'); } else { - outputFile(rawContent); + // outputFile(rawContent); + outputFile(content); } } else if (isFromConstantDir(this.resourcePath) && isThirdMiniappComponent) { const dependencies = [];