vuejs / vue-touch

Hammer.js wrapper for Vue.js
MIT License
2.72k stars 391 forks source link

Apply hotfix to support SSR (Fixes #92) #99

Open Kaptard opened 7 years ago

Kaptard commented 7 years ago

Added this direct hotfix for window not being available server-sided. It's been 9 months since the PR for this has been proposed, so I think that 'temporary' fix in the readme should be implemented directly for the time being.

Functionally, this does the same as the proposed readme fix:

It's not the most beautiful fix, but better than workarounds with webpack that don't work on certain setups.

homerjam commented 6 years ago

+1

dr1v3 commented 6 years ago

+1

KevisLuo commented 6 years ago

+1

MichaelSchober commented 6 years ago

+1

marco-gattelli commented 6 years ago

+1