You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the browser natively supports dynamic import, it's better to use that if available. One way to accomplish that would be something like the following:
Calling new Function('...') will error with some CSP configurations, but since this is in a try/catch block, if CSP is configured to disallow this, the polyfill fallback will be used. I've tested this myself and it works just fine.
The text was updated successfully, but these errors were encountered:
If the browser natively supports dynamic import, it's better to use that if available. One way to accomplish that would be something like the following:
Calling
new Function('...')
will error with some CSP configurations, but since this is in a try/catch block, if CSP is configured to disallow this, the polyfill fallback will be used. I've tested this myself and it works just fine.The text was updated successfully, but these errors were encountered: