feat(mpuniapp): 实现用户端网络拦截器与 API 客户端基础契约 (Task 06)

这个提交包含在:
wikiboss
2026-09-20 17:28:43 +08:00
父节点 3221ce77c4
当前提交 2c3906b634
共有 7 个文件被更改,包括 709 次插入 和 0 次删除

查看文件

@@ -0,0 +1,17 @@
const ts = require('typescript');
module.exports = {
process(sourceText, sourcePath) {
const result = ts.transpileModule(sourceText, {
compilerOptions: {
module: ts.ModuleKind.CommonJS,
target: ts.ScriptTarget.ES2020,
esModuleInterop: true,
},
fileName: sourcePath,
});
return {
code: result.outputText,
};
},
};