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

fix(babel-preset-gatsby-package): remove node-env check as it's alway… #20509

Merged

Conversation

wardpeet
Copy link
Contributor

@wardpeet wardpeet commented Jan 9, 2020

…s false

Description

I've been upgrading reactjs.org to the latest gatsby version (see reactjs/react.dev#2137). Everything worked fine except when I run it using nvmrc (which is set to node 8) it breaks on bad syntax.

Our babel preset has been wrong for a while. Whenever we publish we don't have NODE_ENV or BABEL_ENV set so we publish telling babel to use the current version instead of node 8. 😱

This fixes that 👍

@wardpeet wardpeet requested a review from a team as a code owner January 9, 2020 15:35
Copy link
Contributor

@pvdz pvdz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@wardpeet wardpeet added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Jan 9, 2020
browsers: IS_PRODUCTION
? [`last 4 versions`, `safari >= 7`, `ie >= 9`]
: [`last 2 versions`, `not ie <= 11`, `not android 4.4.3`],
browsers: [`last 2 versions`, `not ie <= 11`, `not android 4.4.3`],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this change the client-side JS that's output during a build?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No that's babel-preset-gatsby :)

@gatsbybot gatsbybot merged commit bafa160 into gatsbyjs:master Jan 9, 2020
@wardpeet wardpeet deleted the fix/babel-preset-package-node-env branch January 9, 2020 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants