mirror of
https://github.com/morluto/rea.git
synced 2026-11-13 18:22:42 +00:00
* fix(javascript): collect async chunks without call spreads * test(javascript): bound the public checkpoint control
14 lines
420 B
TypeScript
14 lines
420 B
TypeScript
/** 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);}}]);",
|
|
};
|
|
};
|