开发:更新导出包的mobx依赖替换

pull/2338/head
ChenX 1 year ago
parent 59b17586e5
commit 5629063ad2

@ -26,8 +26,7 @@ function replace_api_file(filePath: string): Promise<void>
data = data.replaceAll("require(\"./GoodchSimple.fs\")", "\"\"");
data = data.replaceAll("import { iaop } from 'xaop';", "function iaop() { };");
data = data.replaceAll("import { observable, toJS } from 'mobx';", "function observable() { };\r\nfunction toJS() { };");
data = data.replaceAll(/^import.*'mobx';\s*$/gm, "function observable() { };\r\nfunction toJS() { };");
fs.writeFile(filePath, data, err =>
{

Loading…
Cancel
Save