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(vue-extractor): support components with no <template> #1623

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

Touffy
Copy link
Contributor

@Touffy Touffy commented Apr 27, 2023

Description

An improvement to the recently merged Vue single-file component extractor : A SFC may have no <template> (functional components), in which case the extract should just move on with the script.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)

Checklist

  • I have read the CONTRIBUTING and CODE_OF_CONDUCT docs
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate) (N/A)

@vercel
Copy link

vercel bot commented Apr 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
js-lingui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 27, 2023 1:34pm

@github-actions
Copy link

github-actions bot commented Apr 27, 2023

size-limit report 📦

Path Size
./packages/core/dist/index.mjs 1.43 KB (0%)
./packages/detect-locale/dist/index.mjs 721 B (0%)
./packages/react/dist/index.mjs 1.6 KB (0%)
./packages/remote-loader/dist/index.mjs 7.24 KB (0%)

@Touffy Touffy changed the title fix(vue-extractor): support compiler-sfc^2 and components with no <template> fix(vue-extractor): support components with no <template> Apr 27, 2023
@thekip
Copy link
Collaborator

thekip commented Apr 27, 2023

Fixed issue with .default #1626 (comment)

@thekip
Copy link
Collaborator

thekip commented Apr 27, 2023

@Touffy you have issue with prettier

@andrii-bodnar
Copy link
Contributor

@Touffy thanks for the contribution! It seems like there are some Prettier issues in the code. Could you please take a look?

@Touffy
Copy link
Contributor Author

Touffy commented Apr 27, 2023

Sorry. Fixed.

@codecov
Copy link

codecov bot commented Apr 27, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.06 🎉

Comparison is base (9989963) 75.40% compared to head (ba24a1b) 75.46%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1623      +/-   ##
==========================================
+ Coverage   75.40%   75.46%   +0.06%     
==========================================
  Files          77       77              
  Lines        1988     1989       +1     
  Branches      519      518       -1     
==========================================
+ Hits         1499     1501       +2     
+ Misses        375      374       -1     
  Partials      114      114              
Impacted Files Coverage Δ
packages/extractor-vue/src/vue-extractor.ts 81.81% <100.00%> (ø)

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@andrii-bodnar andrii-bodnar merged commit 9e6ea70 into lingui:main Apr 27, 2023
14 checks passed
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.

None yet

3 participants