From d41e2fa62ade27ba6815aaa6ae2e4794c65511cf Mon Sep 17 00:00:00 2001 From: coding Date: Fri, 5 Jan 2018 11:27:35 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9E=84=E9=80=A0=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=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 65e22c8..97db1cb 100644 --- a/src/main/resources/core/require.js +++ b/src/main/resources/core/require.js @@ -202,7 +202,7 @@ if (optional.hook) { origin = optional.hook(origin); } - base.save(cacheFile, "(function (module, exports, require, __dirname, __filename) {" + origin + "});"); + base.save(cacheFile, "(function __init__(module, exports, require, __dirname, __filename) {" + origin + "});"); // 使用 load 可以保留行号和文件名称 var compiledWrapper = load(cacheFile); try {