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
{{ message }}
This repository was archived by the owner on Aug 4, 2021. It is now read-only.
Which looks rather unsafe to me. If for some reason pkg['browser'] is not there, this just blows as it can read property of undefined. Was this intentional? Am I doing something wrong? Or is this a legit bug?
Kind to submit a PR to make that if a tad safer.
The text was updated successfully, but these errors were encountered:
Hey here,
It seems 3.0.1 introduces a regression on this plugin regarding the
browser
option. One of the checks is like this:else if (options.browser && pkg[ 'browser' ][ pkg[ 'main' ] ]) {
Which looks rather unsafe to me. If for some reason
pkg['browser']
is not there, this just blows as it can read property ofundefined
. Was this intentional? Am I doing something wrong? Or is this a legit bug?Kind to submit a PR to make that
if
a tad safer.The text was updated successfully, but these errors were encountered: