flipbook-vue icon indicating copy to clipboard operation
flipbook-vue copied to clipboard

Vue3 support

Open eboye opened this issue 3 years ago • 9 comments

Hi,

I just stumbled on your library and I really like it, but as I'm working on a project in Vue3 it breaks when I try to add it via npm.

Are you planning on supporting Vue3 anytime soon?

eboye avatar Mar 11 '21 03:03 eboye

Hi, I will try to support this someday, but I can't say exactly when. If there is any progress, I will report it in this issue!

ts1 avatar Mar 11 '21 10:03 ts1

@ts1 OK, thanks. I would try to make the changes needed for Vue3, but coffeescript is not my thing ... I would need to learn it first 😄

eboye avatar Mar 11 '21 16:03 eboye

Any update about vue 3 support? I really like your library, but i need it for a vue 3 project

admix85 avatar Apr 06 '22 17:04 admix85

I would love to support Vue 3, but I don't exactly figure out how. From a quick test, it appears that no changes are required to the component itself. It seems to be just a packaging issue.

ts1 avatar Apr 07 '22 07:04 ts1

this could help https://github.com/vueuse/vue-demi it makes it easy to support both Vue2 & Vue3

M3skar avatar Jun 03 '22 09:06 M3skar

@M3skar Thanks!! I'll give it a try!

ts1 avatar Jun 03 '22 09:06 ts1

@ts1 Did you manage to try? I would really like to use your library on Vue3

lolik9l avatar Jul 20 '22 13:07 lolik9l

@lolik9l Yes, I'm trying. I could not get Vue Demi to work as I expected, then tried vue-cli-service build --library, which resulted a huge chunk of unnecessary code, so I'm trying to use rollup to build multiple versions of dist js. The only problem left is how to manage two versions of npm package.

ts1 avatar Jul 20 '22 13:07 ts1

I released 1.0.0-alpha, which supports Vue 3 by default. For Vue 2, use import Flipbook from 'flipbook-vue/vue2'.

ts1 avatar Aug 13 '22 14:08 ts1