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

Add basic support for the nullish coalescing operator ?? #11997

Merged
merged 1 commit into from
Jun 12, 2020

Commits on Jun 12, 2020

  1. Add basic support for the nullish coalescing operator ??

    For now we need to use a Babel-plugin, since Webpack 4.x doesn't seem to support it yet. (Most likely we'll have to update to Webpack 5, once that becomes available, in order for this to be directly supported. This is thus also blocked on removing the `webpack-stream` package.)
    
    While the `??` operator will thus always be transpiled by Babel, even in modern builds, simply supporting it for development purposes seems like a step in the right direction.
    
    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator
    Snuffleupagus committed Jun 12, 2020
    Configuration menu
    Copy the full SHA
    b4ae958 View commit details
    Browse the repository at this point in the history