Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.
/frameworkPublic archive

fix(nuxt): only tree-shake composables on their own lines - #5850

Merged
pi0 merged 1 commit into
mainfrom
fix/tree-shake-restriction
Jul 12, 2022
Merged

fix(nuxt): only tree-shake composables on their own lines#5850
pi0 merged 1 commit into
mainfrom
fix/tree-shake-restriction

Conversation

@danielroe

Copy link
Copy Markdown
Member

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

This further restricts the tree-shaking of composables, requiring nothing on the line before it to reduce the chance of false positives. (So this will no longer treeshake something like const cb = onMounted().)

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroedanielroe added the bug Something isn't working label Jul 12, 2022
@danielroe
danielroe requested a review from pi0July 12, 2022 10:34
@danielroedanielroe self-assigned this Jul 12, 2022
@netlify

netlifyBot commented Jul 12, 2022

Copy link
Copy Markdown

Deploy Preview for nuxt3-docs canceled.

NameLink
🔨 Latest commit73462fb
🔍 Latest deploy loghttps://app.netlify.com/sites/nuxt3-docs/deploys/62cd4e53b20c62000929d356

pi0
pi0 approved these changes Jul 12, 2022
@pi0
pi0 merged commit 2d70507 into mainJul 12, 2022
@pi0
pi0 deleted the fix/tree-shake-restriction branch July 12, 2022 10:55
@pi0pi0 mentioned this pull request Jul 12, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3.xbugSomething isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@danielroe@pi0