tserkov/vue-scroll-reveal

how to use with nuxt.js?

DaxChen opened this issue · 2 comments

Hi,
Thank you for making this library.

However, I can't get this to work with nuxt.js.

If I put the Vue.use part in nuxt.js plugins, as shown here
I get an error saying the export keyword is Invalid token in export default VueScrollReveal;

Thanks

It looks like I never packaged the library! :shame:

My code is ES6, which will need to be transpiled through Babel. When I get back from holiday, I'll push the output of Vue dist so it can be used without.

Thanks for noticing!

@DaxChen I've pushed 1.0.2, which is now ES2015-transpiled. Simply update the package and everything should work perfectly. 😄