{"action":"closed","issue":{"url":"https://api.github.com/repos/jasonmit/ember-cli-moment-shim/issues/24","repository_url":"https://api.github.com/repos/jasonmit/ember-cli-moment-shim","labels_url":"https://api.github.com/repos/jasonmit/ember-cli-moment-shim/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/jasonmit/ember-cli-moment-shim/issues/24/comments","events_url":"https://api.github.com/repos/jasonmit/ember-cli-moment-shim/issues/24/events","html_url":"https://github.com/jasonmit/ember-cli-moment-shim/issues/24","id":137092307,"number":24,"title":"Fastboot support","user":{"login":"rlivsey","id":3740,"avatar_url":"https://avatars.githubusercontent.com/u/3740?v=3","gravatar_id":"","url":"https://api.github.com/users/rlivsey","html_url":"https://github.com/rlivsey","followers_url":"https://api.github.com/users/rlivsey/followers","following_url":"https://api.github.com/users/rlivsey/following{/other_user}","gists_url":"https://api.github.com/users/rlivsey/gists{/gist_id}","starred_url":"https://api.github.com/users/rlivsey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlivsey/subscriptions","organizations_url":"https://api.github.com/users/rlivsey/orgs","repos_url":"https://api.github.com/users/rlivsey/repos","events_url":"https://api.github.com/users/rlivsey/events{/privacy}","received_events_url":"https://api.github.com/users/rlivsey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jasonmit/ember-cli-moment-shim/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-28T20:22:23Z","updated_at":"2016-03-02T20:39:49Z","closed_at":"2016-03-02T20:39:49Z","body":"Currently if you run under Fastboot and have moment-timezone enabled, an error is thrown on build because moment-timezone notices it's running under NPM (`require` is present) and attempts to require moment, which fails because obviously neither library is present in `node_modules`:\r\n\r\n```\r\nBuilt project successfully. Stored in \"fastboot-dist\".\r\nInstalling FastBoot npm dependencies\r\nCould not find module `moment` imported from `(require)`\r\nError: Could not find module `moment` imported from `(require)`\r\n    at missingModule (/Users/rlivsey/Development/experiments/fastboot-test/fastboot-dist/assets/vendor/loader/loader.js:164:1)\r\n    at findModule (/Users/rlivsey/Development/experiments/fastboot-test/fastboot-dist/assets/vendor/loader/loader.js:179:1)\r\n    at requireModule (/Users/rlivsey/Development/experiments/fastboot-test/fastboot-dist/assets/vendor/loader/loader.js:168:1)\r\n    at /Users/rlivsey/Development/experiments/fastboot-test/fastboot-dist/assets/vendor/moment-timezone/tz.js:6:1\r\n    at /Users/rlivsey/Development/experiments/fastboot-test/fastboot-dist/assets/vendor/moment-timezone/tz.js:6:1\r\n```\r\n\r\nI wonder if instead of using Bower, this addon should instead use NPM for the moment and moment-timezone dependencies and then it might work for both normal and Fastboot operation?\r\n\r\nI should have some time this week to spike on this if you think this is a valid direction to go in, or if you have any other ideas for how best to get Fastboot support working."}}