Skip to content

Re-exporting all pinia stores from index file #838

Closed Answered by posva
miguelrk asked this question in Help and Questions
Discussion options

You must be logged in to vote

It should still work when it comes to codesplit as long as your @/stores/index.ts file is just doing export * from './store-1' for each store. But I would give it a try by using two different stores imported from there in two routes and see if the generated chunks correctl contain only one of them.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@miguelrk
Comment options

Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants