mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
bug fix
This commit is contained in:
1 parent
2b6a510c1e
commit
f2bcc3bc93
23 files changed
+241
-119
No files matched your search
+3
-8
@@ -20,20 +20,15 @@ let pending = [];
|
||||
const active = [];
|
||||
const fail = [];
|
||||
|
||||
try {
|
||||
// Let webpack pack builtin module together.
|
||||
// eslint-disable-next-line import/no-unresolved
|
||||
const f = require('../.build/module.json');
|
||||
for (const filename in f) {
|
||||
if (global._hydroModule) {
|
||||
for (const filename in global._hydroModule) {
|
||||
const m = {
|
||||
...yaml.safeLoad(zlib.gunzipSync(Buffer.from(f[filename], 'base64'))),
|
||||
...yaml.safeLoad(zlib.gunzipSync(Buffer.from(global._hydroModule[filename], 'base64'))),
|
||||
filename,
|
||||
isBuiltin: true,
|
||||
};
|
||||
pending.push(m);
|
||||
}
|
||||
} catch (e) {
|
||||
// Ignore Missing
|
||||
}
|
||||
|
||||
async function preload() {
|
||||
|
||||
Reference in new issue
Block a user