problem with webpack
Closed this issue ยท 2 comments
YannickBochatay commented
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());
kaimallea commented
Hey @YannickBochatay, thanks for reporting this! Pull request? ๐
kaimallea commented
๐ This issue has been resolved in version 1.0.0 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐