Skip to content
Discussion options

You must be logged in to vote

Because your package depends on vue, rebuilding vue causes the two component states not to share.

vite will pre-bundled packages, and the dependent packages do not declare dependent vue, so vite will rebuilding vue.

  • will ignore your package on pre-bundled
export default defineConfig({
  plugins: [vue()],
  optimizeDeps: {
    exclude: [
      'component-composable'
    ]
  }
})

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by edison1105
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies

This comment has been hidden.

This comment has been hidden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Inconsistency Inconsistency between dev & build
3 participants
Converted from issue

This discussion was converted from issue #12 on September 25, 2024 07:40.