kaimallea/isMobile

problem with webpack

Closed this issue ยท 2 comments

The npm package doesn't have the same name as the AMD module (ismobilejs versus isMobile).
So when you use webpack, you have to create an alias.
I think it should be fine if you don't give a name to your AMD module (l132) :

define([], global.isMobile = instantiate());

instead of

define('isMobile', [], global.isMobile = instantiate());

Hey @YannickBochatay, thanks for reporting this! Pull request? ๐Ÿ˜ƒ

๐ŸŽ‰ This issue has been resolved in version 1.0.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€