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: isPluginRequired returns the opposite result in v7.8.0 #10992

Merged

Conversation

sodatea
Copy link
Contributor

@sodatea sodatea commented Jan 12, 2020

Q                       A
Fixed Issues?
Patch: Bug Fix? 👍
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass?
Documentation PR Link
Any Dependency Changes?
License MIT

As far as I can tell, the new isRequired function in this PR https://github.com/babel/babel/pull/10899/files does the same job as the legacy isPluginRequired, so the ! here seems incorrect.

It breaks Vue CLI's tests at the moment (though it seems few people have noticed).

Copy link
Contributor

@JLHwung JLHwung left a comment

Choose a reason for hiding this comment

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

LGTM. Likely a glitch when refactoring targetsSupported into isRequired.

It breaks Vue CLI's tests at the moment

We do have vue-cli e2e tests:

CI=true yarn test -p babel

Could you post the broken CI link? It should have been captured by the e2e tests.

@JLHwung JLHwung added i: regression PR: Bug Fix 🐛 A type of pull request used for our changelog categories pkg: preset-env labels Jan 12, 2020
@sodatea
Copy link
Contributor Author

sodatea commented Jan 12, 2020

https://circleci.com/gh/sodatea/vue-cli/2224?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link
I updated the lockfile in an unrelated PR and encountered this issue.

The e2e test script didn't include the preset package. Should be yarn test -p babel,babel-preset-app

@JLHwung
Copy link
Contributor

JLHwung commented Jan 12, 2020

@sodatea Thanks! Can you also update the babel/scripts/integration-tests/e2e-vue-cli.sh? So it can be captured in e2e tests.

@nicolo-ribaudo
Copy link
Member

Will release in a few hours 👍

@nicolo-ribaudo nicolo-ribaudo merged commit f995f8e into babel:master Jan 12, 2020
@nicolo-ribaudo
Copy link
Member

Published as 7.8.2!

@sodatea
Copy link
Contributor Author

sodatea commented Jan 13, 2020

I went to sleep after the last reply 😅
Thanks for the quick action!

@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Apr 13, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: preset-env PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants