mirror of
https://github.com/morluto/rea.git
synced 2026-10-30 19:35:56 +00:00
perf(javascript): index configuration and module lookups
This commit is contained in:
1 parent
02d0702761
commit
67252b23b9
8 files changed
+276
-50
No files matched your search
@@ -164,13 +164,15 @@ const recoverBundlerModule = (
|
||||
const exportsValue = collectJavaScriptExports(factory);
|
||||
const requireName = factoryRequireName(factory);
|
||||
const asyncChunks = collectBundlerAsyncChunkKeys(factory, requireName);
|
||||
if (typeof factory.start === "number" && typeof factory.end === "number")
|
||||
accumulator.modules.push({
|
||||
if (typeof factory.start === "number" && typeof factory.end === "number") {
|
||||
const moduleRange = {
|
||||
start: factory.start,
|
||||
end: factory.end,
|
||||
key,
|
||||
requireName,
|
||||
});
|
||||
};
|
||||
accumulator.moduleRangeIndex.add(moduleRange);
|
||||
}
|
||||
return {
|
||||
module: {
|
||||
module_key: key,
|
||||
|
||||
Reference in new issue
Block a user