dynamically import socket.io-client when needed (#1631)

This commit is contained in:
Aakansha Doshi 2020-05-27 00:21:03 +05:30 committed by GitHub
parent 5a64447adc
commit 5252726307
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View file

@ -18,7 +18,7 @@ if (
/\b(iPad|iPhone|iPod)\b/.test(navigator.userAgent) &&
!matchMedia("(display-mode: standalone)").matches
) {
import("pwacompat");
import(/* webpackChunkName: "pwacompat" */ "pwacompat");
}
const SentryEnvHostnameMap: { [key: string]: string } = {