powmedia / backbone-forms

Form framework for BackboneJS with nested forms, editable lists and validation
MIT License
2.17k stars 415 forks source link

Update package.json main script and update global inject #546

Closed germain-gg closed 3 years ago

germain-gg commented 6 years ago

Hi,

I ran into the same issue as #543 . After doing a bit of digging, I found out that in package.json the main was pointing at the AMD distribution, where in Bower, or in the browser it was pointing to the CommonJS one.

I also change the order between global and window in the module wrapper as it is causing issue when the library is used in a non browser context. (When used with the Mocha CLI for example)

Let me know your thoughts, Thanks