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

RFC: Remove build time extractErrors message when error codes can't be found #9555

Merged
merged 2 commits into from
May 25, 2017

Conversation

tomocchino
Copy link
Contributor

Per #9548 (comment) -- just removing these errors since they're noisy. The extract errors process is documented as part of releases, and we don't extract errors between releases.

@tomocchino tomocchino changed the title RFC: Remove error message when error codes cannot be found RFC: Remove build time extractErrors message when error codes can't be found Apr 28, 2017
@@ -117,16 +117,6 @@ module.exports = function(babel) {
if (prodErrorId === undefined) {
// The error cannot be found in the map.
node[SEEN_SYMBOL] = true;
if (process.env.NODE_ENV !== 'test') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we still keep this but put it behind some other NODE_ENV? E.g. for npm publish builds.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd be happy to. Should we set a NODE_ENV = 'build' when we're building or something?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@tomocchino Just change this to if (process.env.NODE_ENV === 'publish') {. There's no spec for this. Only convention. I just made up this one. We don't actually have to start using it yet because our publishing strategy/tooling is in flux.

@tomocchino
Copy link
Contributor Author

@sebmarkbage I'm not sure how to add a new NODE_ENV. Want me to just abandon this?

@gaearon gaearon merged commit 7b5bdc1 into facebook:master May 25, 2017
@gaearon
Copy link
Collaborator

gaearon commented May 25, 2017

I just merged it as is because it’s too annoying. 😄 I don’t think this warning is very useful because we have the --extractErrors as part of release process guide. And even if we added another convention, you’d need to know to follow it (at which point you might as well pass --extractErrors).

@tomocchino tomocchino deleted the remove-extract-errors-warning branch August 19, 2021 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants