mirror of
https://github.com/morluto/rea.git
synced 2026-11-14 02:32:54 +00:00
fix(javascript): preserve wide async chunk collection (#10362)
* fix(javascript): collect async chunks without call spreads * test(javascript): bound the public checkpoint control
This commit is contained in:
1 parent
e841fb16e4
commit
4b26f38d6f
4 files changed
+125
-1
No files matched your search
+13
@@ -0,0 +1,13 @@
|
||||
/** Inert generated Webpack source; no fixture code is executed. */
|
||||
export const javascriptAsyncChunkCapacity = (count: number) => {
|
||||
const factory = `(m,e,r)=>{${Array.from(
|
||||
{ length: count },
|
||||
(_, index) => `r.e(${String(index)});`,
|
||||
).join("")}}`;
|
||||
return {
|
||||
factory,
|
||||
source:
|
||||
`self.webpackChunkapp.push([[1],{1:${factory},` +
|
||||
"2:(m,e,r)=>{r.e(0);r.e('later');r.e(dynamic);}}]);",
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user