insin / inputmask-core

Standalone input mask implementation, independent of any GUI
MIT License
304 stars 52 forks source link

requirejs compatibility #34

Open lacmuch opened 7 years ago

lacmuch commented 7 years ago

If you change the last line with these:

if (typeof define === 'function' && define.amd) { define([], function() { return InputMask }); } else if (typeof exports === 'object') { module.exports = InputMask; }

...it can be used with requirejs