Closed alexstrat closed 11 years ago
Thanks - releasing as npm package v0.12.0
Actually will be v0.13.0
Looks good, thanks a lot @alexstrat. @powmedia, when the v0.13.0 will be available?
Thx,
It's available now, tagged on github and published on npm
On 3 Nov 2013, at 15:09, olasfar notifications@github.com wrote:
Thx,
Hi,
I tried to use backbone-forms with browserify (~ CommonJS bundler), but I got some issues:
browserify
usesmain
field ofpackage.json
to find the file to bundle. However, here, themain
field points to the AMD bundle. So i added thebrowser
field thatbrowserify
understands.this
does not refer to the global object. Then,root
is not what it's expected to be. I changed that to explicitly passwindow || global || this
(inbrowserify
, global = window)Backbone.Form
was not exported as commonJS module: fixed that.var Form = require('backbone-forms');
And with that, it seems to be ok.