Closed mvpasarel closed 9 years ago
So is it browserify or requirejs? I'm not sure about requirejs, but provided example is compiled with browserify just fine, see https://github.com/vkurchatkin/which-country/blob/master/package.json#L10
I am not sure either, perhaps its requireJS. I compiled it to using browserify, using grunt and without cssify. Would that be a problem as long as I dont use the css?
Anyway, rbush seems to be working with requirejs after I compile it with browserify just as in my example with grunt so maybe there are some compatibilities added more for requirejs in rbush. I will check it out and maybe make a PR for this with requirejs.
not a problem, cssify is just used for example. If you actually want to use which-country
with require.js the best way probably is to compile it to UMD with browserify.
I didnt managed to make it work with requirejs. I ended up copying the files into a requirejs local file. Thank you for the package and help :+1:
I have a backbone app where I tried using this module + browserify. The grunt browserify command setup is :
I tried also :
And in my location/add.js Backbone view file I use:
But I get the same errors:
Uncaught TypeError: rbush
Uncaught TypeError: wc is not a function
Do you have any idea what I am doing wrong or how should I use this with backbone+requirejs?