Skip to content

fix: AddExports - #2275

Open
EndlessKeep wants to merge 1 commit into
vuejs:mainfrom
EndlessKeep:fix/packagesExports
Open

fix: AddExports#2275
EndlessKeep wants to merge 1 commit into
vuejs:mainfrom
EndlessKeep:fix/packagesExports

Conversation

@EndlessKeep

Copy link
Copy Markdown

No description provided.

@netlify

netlify Bot commented Jul 24, 2026

Copy link
Copy Markdown

βœ… Deploy Preview for vuex-docs ready!

Name Link
πŸ”¨ Latest commit d73e50a
πŸ” Latest deploy log https://app.netlify.com/projects/vuex-docs/deploys/6a634171af4f9100086dbd20
😎 Deploy Preview https://deploy-preview-2275--vuex-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 project configuration.

@EndlessKeep EndlessKeep changed the title feat: AddExports fix: AddExports Jul 24, 2026
@EndlessKeep

Copy link
Copy Markdown
Author

Without this condition, TypeScript projects using moduleResolution: "bundler" resolve vuex to dist/vuex.mjs instead of the existing type declarations, causing Vuex APIs such as mapState to lose their types and producing downstream inference errors in Vue components.

This change preserves the existing runtime exports while allowing modern TypeScript module resolution to correctly resolve types/index.d.ts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant