vue-hooks-plus
vue-hooks-plus copied to clipboard
[Bug] tree shaking problem
Describe the bug
Some hooks will import all hooks.
For example: useInfiniteScroll
https://github.com/InhiblabCore/vue-hooks-plus/blob/2a8fd77d5adab1f59d042dbacc7b407631aefa92/packages/hooks/src/useInfiniteScroll/index.ts#L2
Steps to reproduce
import useInfiniteScroll from 'vue-hooks-plus/es/useInfiniteScroll';
System Info
no
Used Package Manager
pnpm
Validations
- [X] Follow our Code of Conduct.
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a VueHooks Plus issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- [X] The provided reproduction is a minimal reproducible example of the bug.