{"action":"created","issue":{"url":"https://api.github.com/repos/jquery/globalize/issues/441","labels_url":"https://api.github.com/repos/jquery/globalize/issues/441/labels{/name}","comments_url":"https://api.github.com/repos/jquery/globalize/issues/441/comments","events_url":"https://api.github.com/repos/jquery/globalize/issues/441/events","html_url":"https://github.com/jquery/globalize/issues/441","id":70785802,"number":441,"title":"Bundling with Webpack doesn't work well","user":{"login":"jquense","id":339286,"avatar_url":"https://avatars.githubusercontent.com/u/339286?v=3","gravatar_id":"","url":"https://api.github.com/users/jquense","html_url":"https://github.com/jquense","followers_url":"https://api.github.com/users/jquense/followers","following_url":"https://api.github.com/users/jquense/following{/other_user}","gists_url":"https://api.github.com/users/jquense/gists{/gist_id}","starred_url":"https://api.github.com/users/jquense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquense/subscriptions","organizations_url":"https://api.github.com/users/jquense/orgs","repos_url":"https://api.github.com/users/jquense/repos","events_url":"https://api.github.com/users/jquense/events{/privacy}","received_events_url":"https://api.github.com/users/jquense/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-24T20:26:40Z","updated_at":"2015-04-27T17:42:51Z","closed_at":null,"body":"congrats on `1.0`! been waiting a long time to use the shiney new globalize :)\r\n\r\nI have been running into issues using Globalize with webpack ( browserify may suffer similarly).\r\n\r\n```js\r\nERROR in ./~/globalize/dist/globalize/number.js\r\nModule not found: Error: Cannot resolve module 'cldr' in \\node_modules\\globalize\\dist\\globalize\r\n```\r\n\r\nInvestigation shows that this is due to the AMD check running first in the UMD wrapper for the files, since the package has been installed from npm there is no `cldr` package for webpack to find. there is a `cldrjs` however and if I tell webpack to ignore amd style modules for globalize it works just fine.\r\n\r\nThe problem is that as a library author using Globalize and publishing to npm I can't ask consumers of my module to add a special exemption to there build process in order to get my module to load. I am not sure what the best way to \"fix\" this is other then building a commonjs (or amd) only version of globalize that gets published to npm, instead of the general `/dist` build that works for both bower and npm"},"comment":{"url":"https://api.github.com/repos/jquery/globalize/issues/comments/96753491","html_url":"https://github.com/jquery/globalize/issues/441#issuecomment-96753491","issue_url":"https://api.github.com/repos/jquery/globalize/issues/441","id":96753491,"user":{"login":"rxaviers","id":967155,"avatar_url":"https://avatars.githubusercontent.com/u/967155?v=3","gravatar_id":"","url":"https://api.github.com/users/rxaviers","html_url":"https://github.com/rxaviers","followers_url":"https://api.github.com/users/rxaviers/followers","following_url":"https://api.github.com/users/rxaviers/following{/other_user}","gists_url":"https://api.github.com/users/rxaviers/gists{/gist_id}","starred_url":"https://api.github.com/users/rxaviers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rxaviers/subscriptions","organizations_url":"https://api.github.com/users/rxaviers/orgs","repos_url":"https://api.github.com/users/rxaviers/repos","events_url":"https://api.github.com/users/rxaviers/events{/privacy}","received_events_url":"https://api.github.com/users/rxaviers/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T17:42:51Z","updated_at":"2015-04-27T17:42:51Z","body":"And I'm saying that on AMD there's no hard definition for module names. Let me demonstrate with code for you as well https://github.com/jquery/globalize/blob/master/test/config.js#L4 (on AMD you must tell where the modules come from or it's expected there's a file on baseDir with such name).\r\n\r\nAnyway, can you make a test please? If you rename `cldr` occurences to `cldrjs` in your local`node_modules/globalize/dist/*` files, does it work? I think you'll get a failure on \"cldr/event\"."}}