-
-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make interop conditional more clear #322
Conversation
@@ -9,7 +9,7 @@ else if ('serviceWorker' in navigator && location.protocol === 'https:') { | |||
} | |||
|
|||
|
|||
const interopDefault = m => m && m.default || m; | |||
const interopDefault = m => m && m.default ? m.default : m; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is easy to understand.
👍 LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but it takes more space :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true, but easy to understand ;)
The way I see it is extractly the same. This is actually common in JS codebases. Try jQuery :D |
heh yeah they look the same to me, but I am also a masochist |
I'm a fan of the |
we are mutants |
or simulations 💻 |
Count me in !! ;) |
No description provided.