Closed jahilldev closed 2 years ago
Refactored onConnected function to remove use of async/await. This was causing the inclusion of the regenerator runtime, adding significant weight to the built file.
onConnected
async/await
Before: 7.6KB (3KB Gzip) After: 6.28KB (2KB Gzip)
Refactored
onConnected
function to remove use ofasync/await
. This was causing the inclusion of the regenerator runtime, adding significant weight to the built file.Before: 7.6KB (3KB Gzip) After: 6.28KB (2KB Gzip)