Importing `vuedraggable` in my application increases the bundle size by 215 kB (after minification), which is quite a lot. * `sortablejs` itself is only 40 kB. * 90 kB is taken by Vue template compiler. I don't know why it ends up being included. I resolved this in my Vite config by adding: ``` resolve: { alias: { vue: 'vue/dist/vue.runtime.esm-bundler.js', }, }, ``` (see https://vuejs.org/guide/scaling-up/tooling.html#note-on-in-browser-template-compilation) * Most of the remaining 85 kB appears to come from polyfills, which are probably unnecessary.
Activity
adamsol commentedon Mar 21, 2025
This seems to be an even better approach, solving both parts of the issue:
(idea found in #117)