{"action":"created","issue":{"url":"https://api.github.com/repos/fuse-box/fuse-box/issues/1405","repository_url":"https://api.github.com/repos/fuse-box/fuse-box","labels_url":"https://api.github.com/repos/fuse-box/fuse-box/issues/1405/labels{/name}","comments_url":"https://api.github.com/repos/fuse-box/fuse-box/issues/1405/comments","events_url":"https://api.github.com/repos/fuse-box/fuse-box/issues/1405/events","html_url":"https://github.com/fuse-box/fuse-box/issues/1405","id":368818895,"node_id":"MDU6SXNzdWUzNjg4MTg4OTU=","number":1405,"title":"Custom shim names not working","user":{"login":"selfagency","id":2541728,"node_id":"MDQ6VXNlcjI1NDE3Mjg=","avatar_url":"https://avatars0.githubusercontent.com/u/2541728?v=4","gravatar_id":"","url":"https://api.github.com/users/selfagency","html_url":"https://github.com/selfagency","followers_url":"https://api.github.com/users/selfagency/followers","following_url":"https://api.github.com/users/selfagency/following{/other_user}","gists_url":"https://api.github.com/users/selfagency/gists{/gist_id}","starred_url":"https://api.github.com/users/selfagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selfagency/subscriptions","organizations_url":"https://api.github.com/users/selfagency/orgs","repos_url":"https://api.github.com/users/selfagency/repos","events_url":"https://api.github.com/users/selfagency/events{/privacy}","received_events_url":"https://api.github.com/users/selfagency/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-10-10T19:32:42Z","updated_at":"2018-10-11T16:44:15Z","closed_at":"2018-10-10T20:15:34Z","author_association":"NONE","body":"Per the documentation [here](https://fuse-box.org/docs/development/configuration):\r\n\r\n>  you can replace `jquery` with `foo` and use `import \"foo\"` to get a jquery instance\r\n\r\nHowever, when I attempt to use the following, I get the error:\r\n` uncaught exception: Package not found waypoints-infinite`.\r\n\r\nFrom `fuse.js`:\r\n```\r\nfuse\r\n  .bundle('nylon')\r\n  .shim({\r\n    jquery: {\r\n      source: 'node_modules/jquery/dist/jquery.js',\r\n      exports: '$'\r\n    },\r\n    waypoints: {\r\n      source: 'node_modules/waypoints/src/waypoint.js',\r\n      exports: 'Waypoint'\r\n    },\r\n    'waypoints-infinite': {\r\n      source: 'node_modules/waypoints/lib/shortcuts/infinite.js'\r\n    },\r\n    'waypoints-sticky': {\r\n      source: 'node_modules/waypoints/lib/shortcuts/sticky.js'\r\n    }\r\n  })\r\n  .instructions(' > scripts/nylon.js')\r\n  .hmr()\r\n  .sourceMaps(true)\r\n  .watch()\r\n```\r\n\r\nFrom my code:\r\n\r\n```\r\nimport 'waypoints-infinite'\r\nimport 'waypoints-sticky'\r\n```\r\n\r\nI also tried it this way and got the same error:\r\n\r\n```\r\nconst fuse = FuseBox.init({\r\n  homeDir: 'src',\r\n  target: 'browser@es5',\r\n  output: 'public/scripts/$name.js',\r\n  allowSyntheticDefaultImports: true,\r\n  useTypescriptCompiler: true,\r\n  sourceMaps: { inline: false, sourceRoot: '/public/scripts' },\r\n  plugins: [JSONPlugin()],\r\n  shim: {\r\n    jquery: {\r\n      source: 'node_modules/jquery/dist/jquery.js',\r\n      exports: '$'\r\n    },\r\n    waypoints: {\r\n      source: 'node_modules/waypoints/src/waypoint.js',\r\n      exports: 'Waypoint'\r\n    },\r\n    'waypoints-infinite': {\r\n      source: 'node_modules/waypoints/lib/shortcuts/infinite.js'\r\n    },\r\n    'waypoints-sticky': {\r\n      source: 'node_modules/waypoints/lib/shortcuts/sticky.js'\r\n    }\r\n  }\r\n})\r\n```"},"comment":{"url":"https://api.github.com/repos/fuse-box/fuse-box/issues/comments/429029637","html_url":"https://github.com/fuse-box/fuse-box/issues/1405#issuecomment-429029637","issue_url":"https://api.github.com/repos/fuse-box/fuse-box/issues/1405","id":429029637,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTAyOTYzNw==","user":{"login":"selfagency","id":2541728,"node_id":"MDQ6VXNlcjI1NDE3Mjg=","avatar_url":"https://avatars0.githubusercontent.com/u/2541728?v=4","gravatar_id":"","url":"https://api.github.com/users/selfagency","html_url":"https://github.com/selfagency","followers_url":"https://api.github.com/users/selfagency/followers","following_url":"https://api.github.com/users/selfagency/following{/other_user}","gists_url":"https://api.github.com/users/selfagency/gists{/gist_id}","starred_url":"https://api.github.com/users/selfagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selfagency/subscriptions","organizations_url":"https://api.github.com/users/selfagency/orgs","repos_url":"https://api.github.com/users/selfagency/repos","events_url":"https://api.github.com/users/selfagency/events{/privacy}","received_events_url":"https://api.github.com/users/selfagency/received_events","type":"User","site_admin":false},"created_at":"2018-10-11T16:44:15Z","updated_at":"2018-10-11T16:44:15Z","author_association":"NONE","body":"hmm, i don't use semicolons in my own js usually. will that be an issue? or is this just an issue for vendor libraries?"}}
{"actor":{"display_login":"selfagency"}}