Vue.Draggable icon indicating copy to clipboard operation
Vue.Draggable copied to clipboard

Need es modules version ,vite error during build that Unexpreted token: global.core = core

Open radiorz opened this issue 4 years ago • 1 comments

First check https://github.com/SortableJS/Vue.Draggable/blob/master/CONTRIBUTING.md

Jsfiddle link

Step by step scenario

Actual Solution

Expected Solution

radiorz avatar Oct 13 '21 08:10 radiorz

When using vite, you can change the rollup options (in vite.config.ts) to leave vuedraggable external:

build: {
  rollupOptions: {
    external: [
      "vuedraggable"
    ]
  }
}

jschirrmacher avatar Jul 01 '22 06:07 jschirrmacher