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

fix(nuxt): cleanup auto imports on regenerate #4626

Merged
merged 2 commits into from
Apr 26, 2022
Merged

Conversation

antfu
Copy link
Member

@antfu antfu commented Apr 26, 2022

πŸ”— Linked issue

Fix nuxt/nuxt#13528

❓ 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

πŸ“ Checklist

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

@netlify
Copy link

netlify bot commented Apr 26, 2022

βœ… Deploy Preview for nuxt3-docs ready!

Name Link
πŸ”¨ Latest commit a44d1f5
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62681365b705db00083e15f8
😎 Deploy Preview https://deploy-preview-4626--nuxt3-docs.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

await ctx.modifyDynamicImports(async (imports) => {
// Modules extending
await nuxt.callHook('autoImports:extend', imports)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as components, we might call this hook last (after scanning) giving a chance to modules to apply their custom extending logic also including user project.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. Thanks for the notice!

@pi0 pi0 changed the title fix: clearup auto imports on regenerate fix(nuxt): clearup auto imports on regenerate Apr 26, 2022
@antfu antfu changed the title fix(nuxt): clearup auto imports on regenerate fix(nuxt): cleanup auto imports on regenerate Apr 26, 2022
@pi0 pi0 merged commit eb4b8c4 into main Apr 26, 2022
@pi0 pi0 deleted the fix/clear-auto-imports branch April 26, 2022 15:52
@pi0 pi0 mentioned this pull request May 2, 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
Projects
None yet
3 participants