提交 31f6d774 编写于 作者: 5 592767809

更新

上级 00fff2de
......@@ -39,6 +39,22 @@ for (let i = 0; i < loader_body.length; i++){
}
}
// 修改加载器参数类型
let loader_arguments = loader_ast.program.body[0].expression.argument.arguments[0] = t.objectExpression([]);
console.log(loader_arguments);
// 加载函数体
// var modular_path = ['app.597640f.js'];
// console.log(loader_ast.program.body[0].expression.argument.arguments)
// modular_path.forEach(function (item, index) {
// var jscode = fs.readFileSync(item, {
// encoding: "utf-8"
// });
//
// let modular_ast = parser.parse(jscode);
// console.log(modular_ast.program.body[0].expression.arguments[0].elements)
//
// });
let code = generator.default(loader_ast, {
......
......@@ -148,4 +148,4 @@
}, d.p = "https://h5static.kuwo.cn/www/kw-www/", d.oe = function (e) {
throw console.error(e), e;
};
}([]);
\ No newline at end of file
}({});
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册