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

fix(nuxt): use vue-devtools-stub to mock @vue/devtools-api for both cjs + esm #6713

Merged
merged 3 commits into from
Aug 17, 2022

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

resolves nuxt/nuxt#13743

❓ 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

When @vue/devtools-api is imported in an ESM module (as in pinia), our cjs proxy doesn't work. Thanks to @pi0, we now have a standalone stub we can use that works in both ESM + CJS contexts.

πŸ“ Checklist

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

@danielroe danielroe added bug Something isn't working nitro labels Aug 17, 2022
@danielroe danielroe requested a review from pi0 August 17, 2022 13:28
@danielroe danielroe self-assigned this Aug 17, 2022
@netlify
Copy link

netlify bot commented Aug 17, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit 71712ce
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62fcf839b2fa3500098102c1

@pi0 pi0 merged commit 405629d into main Aug 17, 2022
@pi0 pi0 deleted the fix/devtools-api branch August 17, 2022 14:44
@pi0 pi0 mentioned this pull request Aug 26, 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 nitro
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'setupDevtoolsPlugin' is not exported by unenv
2 participants