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 globalThis (with fallback if needed) instead of global to enable esbuild support #11569

Merged
merged 2 commits into from Jun 15, 2021
Merged

Use globalThis (with fallback if needed) instead of global to enable esbuild support #11569

merged 2 commits into from Jun 15, 2021

Commits on Jun 14, 2021

  1. use globalThis (inline polyfill) instead of global

    By using `global`, the package `pretty-format` can not be bundled for the browser by `esbuild` because `global` is not defined in a browser environment.
    
    Switching to `globalThis`, with a polyfill for older environments, allows `pretty-format` (and hopefully other packages) to be bundled by `esbuild --platform browser`.
    JakeChampion committed Jun 14, 2021
    Copy the full SHA
    6de8504 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2021

  1. Copy the full SHA
    19f2ea6 View commit details
    Browse the repository at this point in the history