File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"dist/loadable.cjs.js" : {
3
- "bundled" : 16354 ,
4
- "minified" : 7304 ,
5
- "gzipped" : 2565
3
+ "bundled" : 16504 ,
4
+ "minified" : 7301 ,
5
+ "gzipped" : 2586
6
6
},
7
7
"dist/loadable.esm.js" : {
8
- "bundled" : 15975 ,
9
- "minified" : 7000 ,
10
- "gzipped" : 2495 ,
8
+ "bundled" : 16125 ,
9
+ "minified" : 6997 ,
10
+ "gzipped" : 2516 ,
11
11
"treeshaked" : {
12
12
"rollup" : {
13
13
"code" : 276 ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const BROWSER = typeof window !== 'undefined'
8
8
9
9
export default function loadableReady (
10
10
done = ( ) => { } ,
11
- { namespace = '' } = { } ,
11
+ { namespace = '' , chunkLoadingGlobal = '__LOADABLE_LOADED_CHUNKS__' } = { } ,
12
12
) {
13
13
if ( ! BROWSER ) {
14
14
warn ( '`loadableReady()` must be called in browser only' )
@@ -49,8 +49,8 @@ export default function loadableReady(
49
49
let resolved = false
50
50
51
51
return new Promise ( resolve => {
52
- window . __LOADABLE_LOADED_CHUNKS__ = window . __LOADABLE_LOADED_CHUNKS__ || [ ]
53
- const loadedChunks = window . __LOADABLE_LOADED_CHUNKS__
52
+ window [ chunkLoadingGlobal ] = window [ chunkLoadingGlobal ] || [ ]
53
+ const loadedChunks = window [ chunkLoadingGlobal ]
54
54
const originalPush = loadedChunks . push . bind ( loadedChunks )
55
55
56
56
function checkReadyState ( ) {
You can’t perform that action at this time.
0 commit comments