Skip to content

Commit 1c72199

Browse files
committed
feat(script-loader): support platform-loader of npm
1 parent 06bdd95 commit 1c72199

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/jsx2mp-loader/src/script-loader.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ module.exports = function scriptLoader(content) {
236236
content
237237
].join('\n');
238238
} else {
239-
outputFile(rawContent);
239+
// outputFile(rawContent);
240+
outputFile(content);
240241
}
241242
} else if (isFromConstantDir(this.resourcePath) && isThirdMiniappComponent) {
242243
const dependencies = [];

0 commit comments

Comments
 (0)