CommonJS support
htchaan opened this issue Β· comments
It would be nice for those using nodejs and browserify π
https://github.com/davidjbradshaw/iframe-resizer/blob/master/src/iframeResizer.js#L436
https://github.com/umdjs/umd/blob/master/commonjsStrictGlobal.js
Happy to accept a patch for this.
I've added NodeJS support to the current AMD definition to v2.6.5, note that AMD only supports the native call and not jQuery version as it's not possible to define both via AMD.
Would be grateful if you could test this for me, as I don't use Browserify.
Works fine with Browserify. π
Thanks.