From c873031cc21f0b5aca007842b5d52a5864c6ae17 Mon Sep 17 00:00:00 2001 From: coding Date: Sat, 19 May 2018 17:11:48 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E5=87=BD=E6=95=B0=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/core/require.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/core/require.js b/src/main/resources/core/require.js index 2cc5baf..c31712a 100644 --- a/src/main/resources/core/require.js +++ b/src/main/resources/core/require.js @@ -205,7 +205,7 @@ if (optional.hook) { origin = optional.hook(origin); } - base.save(cacheFile, "(function __init__(module, exports, require, __dirname, __filename) {" + origin + "});"); + base.save(cacheFile, "(function $(module, exports, require, __dirname, __filename) {" + origin + "});"); // 使用 load 可以保留行号和文件名称 var compiledWrapper = engineLoad(cacheFile); try {