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 {