Skip to content
This repository was 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
pi0 merged 3 commits intomainfrom
fix/devtools-api
Aug 17, 2022
Merged

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

Conversation

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

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

Comment thread test/fixtures/basic/pages/index.vue Outdated
@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