feat(mpuniapp): 实现用户端网络拦截器与 API 客户端基础契约 (Task 06)
这个提交包含在:
@@ -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,
|
||||
};
|
||||
},
|
||||
};
|
||||
在新工单中引用
屏蔽一个用户