vikseriq / requirejs-vue

Use Vue components with RequireJS. Easily. Client-side.
42 stars 6 forks source link

Throws an error when optimizing #1

Closed danmillar closed 6 years ago

danmillar commented 7 years ago

This is a great plugin and works well. I'm having an issue however when trying to use the requirejs optimizer (r.js -o). It fails at the plugin with an error of "Unsupported environment". Any ideas?

vikseriq commented 7 years ago

Currently aimed to work only in browser environment with XMLHttpRequest enabled (so no IE6 too). PR for server-side execution (node/r.js -o) are welcome :)

vikseriq commented 6 years ago

Now plugin supports r.js building workflow. Enjoy!