You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just found a issue with the tree-shaking of package @vueuse/components, this is what I tested out:
The code
created a fresh project using pnpm create vue@latest.
<!-- App.vue --><scriptsetuplang="ts">import { UseMouse } from"@vueuse/components";</script>
<template>
<UseMouse #="{ x, y }">
{{ x }}
{{ y }}
</UseMouse>
</template>
The build size
Build without/* #__PURE__ */ comments: 114.23 kB
No code change, same build with/* #__PURE__ */ comments: 65.82 kB
I checked that sideEffects field in the package.json of @vueuse/components is already set to false, but it did'nt work, maybe vite(rollup?) should fix this as well?
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Check that this is a concrete bug. For Q&A open a GitHub Discussion.
Describe the bug
Just found a issue with the tree-shaking of package
@vueuse/components
, this is what I tested out:The code
created a fresh project using
pnpm create vue@latest
.The build size
Build without
/* #__PURE__ */
comments: 114.23 kBNo code change, same build with
/* #__PURE__ */
comments: 65.82 kBI checked that
sideEffects
field in thepackage.json
of@vueuse/components
is already set tofalse
, but it did'nt work, maybe vite(rollup?) should fix this as well?Reproduction
https://vueuse.org/
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: