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

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

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

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

Conversation

@danielroe
Copy link
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.

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

netlify bot commented Jul 12, 2022

Deploy Preview for nuxt3-docs canceled.

Name Link
🔨 Latest commit 73462fb
🔍 Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62cd4e53b20c62000929d356

@pi0 pi0 merged commit 2d70507 into main Jul 12, 2022
@pi0 pi0 deleted the fix/tree-shake-restriction branch July 12, 2022 10:55
@pi0 pi0 mentioned this pull request Jul 12, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3.x bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants