hilongjw/vue-progressbar

Usage without module / exports / RequireJS/AMD

bartrail opened this issue · 4 comments

It would be nice if you could add a fallback for a regular JavaScript usage with <script src="/js/vue-progressbar.js"></script> - meaning without any AMD loading / gulp/grunt preprocessing or ES6 features (like for IE10, Mobile Safari on iOS 9/10) ? Seems like its dependent on the module.export

I second that.

Thirded

@bartrail @digitalbaboon @bladefist For regular Javascript usage it doesn't make much sense that a Vue-specific package should work, don't you agree?
That being said, there are versions of this just for Javascript usage, my recommendation is nProgress.

Generally speaking I'd agree. That said there are situations, uncommon or sub-optimal as they maybe, where it would be helpful (i.e. loading from a CDN like unpkg or jsdelivr).

I've submitted a PR if you're amicable to the change.