Skip to content

[v13] fix: Explicitly set the prettier parser to 'babylon' #1322

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

Closed
wants to merge 1 commit into from
Closed

[v13] fix: Explicitly set the prettier parser to 'babylon' #1322

wants to merge 1 commit into from

Conversation

edmorley
Copy link

Since as of Prettier 1.13.0 there is no longer a default:
prettier/prettier#4528

The parser option has been supported since prettier v0.0.10, so this won't break users whose lockfile still references a pre-1.13.0 release of prettier:
https://github.com/prettier/prettier/blob/1.13.0/src/main/core-options.js#L89

This is the 13.x branch backport of:
vuejs/component-compiler-utils#15

...which will help resolve the failures we're seeing (neutrinojs/neutrino#913) in the latest stable release of @neutrinojs/vue which is still using vue-loader v13 (upgrading the v8 branch to vue-loader 15 would be a breaking change for our users).

Since as of Prettier 1.13.0 there is no longer a default:
prettier/prettier#4528

The `parser` option has been supported since prettier v0.0.10, so
this won't break users whose lockfile still references a pre-1.13.0
release of prettier:
https://github.com/prettier/prettier/blob/1.13.0/src/main/core-options.js#L89

This is the `13.x` branch backport of:
vuejs/component-compiler-utils#15
@yyx990803
Copy link
Member

Duplicate of #1319

@yyx990803 yyx990803 marked this as a duplicate of #1319 May 28, 2018
@yyx990803 yyx990803 closed this May 28, 2018
@edmorley edmorley deleted the v13-prettier-hotfix branch May 28, 2018 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants