Skip to content
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

use try-catch to simplify instanceOf checks #4079

Closed
wants to merge 1 commit into from

Conversation

yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented May 3, 2024

for platforms where process.env is not globally accessible and defined, just return true

bundlers should have an easy time just replacing process.env.NODE_ENV without any qualifiers

Copy link

netlify bot commented May 3, 2024

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit 5cfec34
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/6634aadb0cf0da000860d512
😎 Deploy Preview https://deploy-preview-4079--compassionate-pike-271cb3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

github-actions bot commented May 3, 2024

Hi @yaacovCR, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

@yaacovCR yaacovCR changed the title use try-catch to simplify production checks use try-catch to simplify instanceOf checks May 3, 2024
@yaacovCR
Copy link
Contributor Author

yaacovCR commented May 5, 2024

Closing, this does not seem so tree-shakable, see #4075.

@yaacovCR yaacovCR closed this May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant