Skip to content

fix: enable some syntax extensions by default for vue script compiler #5868

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Sep 10, 2020

Conversation

haoqunjiang
Copy link
Member

These are enabled by default in the @vue/babel-preset-app.

Fixes #5863
Fixes #5866

This don't fix the case where the user has enabled more custom syntax in
babel. @vue/compiler-sfc needs to fail gracefully in such cases.

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:

These are enabled by default in the `@vue/babel-preset-app`.

Fixes vuejs#5863
Fixes vuejs#5866

These doesn't fix the case where user has enabled more custom syntax in
babel. `@vue/compiler-sfc` needs to fail gracefully in such cases.
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
1 participant