Open somespecialone opened 6 months ago
How'd you go about implementing this in something like nuxt? :0
How'd you go about implementing this in something like nuxt? :0
All actions can and will be ClientOnly
, of course. Just don't want to import lib dynamically on client in separate chunk, but can't even import it and build with due to window
and document
on top of the file
@tekigg , after all I ended up with dynamic import on client-side 😁 But, even there I think it is good to give users of the lib the ability to bundle the code
Nice! It’s what I ended up doing as well. And yeah wouldn’t hurt to have them exported would probably also make implementation easier. Thanks for the help!
@devenini If (for some reason) this is not an ideal solution then could you at least ship non-minified files? I could easily patch source files instead of maintaining my own fork.
Fixes #507. Guys, thanks for your work! Just really want to fix the problem in Node environment for using SSR/SSG with this lib (I make my own wrapper for Vue/Nuxt).