File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
export default function myInitializer ( ) {
2
2
return {
3
3
onStart : ( ) => {
4
- console . debug ( "Loading..." ) ;
4
+ console . log ( "Loading..." ) ;
5
5
console . time ( "trunk-initializer" ) ;
6
6
} ,
7
7
onProgress : ( { current, total} ) => {
8
8
if ( ! total ) {
9
- console . debug ( "Loading..." , current , "bytes" ) ;
9
+ console . log ( "Loading..." , current , "bytes" ) ;
10
10
} else {
11
- console . debug ( "Loading..." , Math . round ( ( current / total ) * 100 ) , "%" )
11
+ console . log ( "Loading..." , Math . round ( ( current / total ) * 100 ) , "%" )
12
12
}
13
13
} ,
14
14
onComplete : ( ) => {
15
- console . debug ( "Loading... done!" ) ;
15
+ console . log ( "Loading... done!" ) ;
16
16
console . timeEnd ( "trunk-initializer" ) ;
17
17
} ,
18
18
onSuccess : ( wasm ) => {
19
- console . debug ( "Loading... successful!" ) ;
20
- console . debug ( "WebAssembly: " , wasm ) ;
19
+ console . log ( "Loading... successful!" ) ;
20
+ console . log ( "WebAssembly: " , wasm ) ;
21
21
} ,
22
22
onFailure : ( error ) => {
23
23
console . warn ( "Loading... failed!" , error ) ;
You can’t perform that action at this time.
0 commit comments