vue.draggable.next icon indicating copy to clipboard operation
vue.draggable.next copied to clipboard

Large package size

Open adamsol opened this issue 7 months ago • 1 comments

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.

adamsol avatar Mar 20 '25 17:03 adamsol