简化模块加载

deprecated hydro-build
This commit is contained in:
undefined committed 2020-07-15 20:46:45 +08:00
1 parent 8aef05a375
commit 8f6968bbbd
41 files changed
+1361 -1957

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
const fs = require('fs');
const path = require('path');
function fix(file) {
let content = fs.readFileSync(file).toString();
content = content.replace(/https:\/\/registry.yarnpkg.com\//gmi, 'https://registry.npm.taobao.org/');
fs.writeFileSync(file, content);
}
fix(path.resolve(__dirname, '..', 'yarn.lock'));
fix(path.resolve(__dirname, '..', 'ui', 'yarn.lock'));