feat: 修改初始化函数名称
This commit is contained in:
parent
9504ec8b12
commit
c873031cc2
@ -205,7 +205,7 @@
|
|||||||
if (optional.hook) {
|
if (optional.hook) {
|
||||||
origin = optional.hook(origin);
|
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 可以保留行号和文件名称
|
// 使用 load 可以保留行号和文件名称
|
||||||
var compiledWrapper = engineLoad(cacheFile);
|
var compiledWrapper = engineLoad(cacheFile);
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user