{"action":"opened","issue":{"url":"https://api.github.com/repos/fuse-box/fuse-box/issues/1286","repository_url":"https://api.github.com/repos/fuse-box/fuse-box","labels_url":"https://api.github.com/repos/fuse-box/fuse-box/issues/1286/labels{/name}","comments_url":"https://api.github.com/repos/fuse-box/fuse-box/issues/1286/comments","events_url":"https://api.github.com/repos/fuse-box/fuse-box/issues/1286/events","html_url":"https://github.com/fuse-box/fuse-box/issues/1286","id":329271865,"node_id":"MDU6SXNzdWUzMjkyNzE4NjU=","number":1286,"title":"Package names that begin with capital letters can be defined, but not properly imported","user":{"login":"dlannoye","id":1383720,"node_id":"MDQ6VXNlcjEzODM3MjA=","avatar_url":"https://avatars2.githubusercontent.com/u/1383720?v=4","gravatar_id":"","url":"https://api.github.com/users/dlannoye","html_url":"https://github.com/dlannoye","followers_url":"https://api.github.com/users/dlannoye/followers","following_url":"https://api.github.com/users/dlannoye/following{/other_user}","gists_url":"https://api.github.com/users/dlannoye/gists{/gist_id}","starred_url":"https://api.github.com/users/dlannoye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlannoye/subscriptions","organizations_url":"https://api.github.com/users/dlannoye/orgs","repos_url":"https://api.github.com/users/dlannoye/repos","events_url":"https://api.github.com/users/dlannoye/events{/privacy}","received_events_url":"https://api.github.com/users/dlannoye/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-05T01:39:18Z","updated_at":"2018-06-05T01:39:18Z","closed_at":null,"author_association":"NONE","body":"I have a repository that shows this issues here:\r\nhttps://github.com/dlannoye/fuse-box-default-package\r\n\r\nIn fuse.js I am defining a package with a name that begins with an uppercase letter. This builds and bundles fine, but at load time I get an `Uncaught Package not found default` from the fuse-box generated import call. This is because the code in the loader doesn't treat the string beginning with a capital letters as a package name.\r\n\r\nIf I call `FuseBox.import(\"\", { pkg: \"SomeProject\" });` the package loads just fine. \r\n\r\nI can understand this restriction since the [package.json](https://docs.npmjs.com/files/package.json) specs say not to use capital letters in a package name, but it would be nice if fuse-box handled this in a better way. Maybe through a build time error or a better exception message. \r\n\r\nAlso the fuse-box [documentation for package name](https://fuse-box.org/page/configuration#package-name) uses invalid names for npm packages and doesn't mention these restrictions.\r\n\r\n<!-- \r\nLove fuse-box? Please consider supporting our collective: 👉  https://opencollective.com/fuse-box/donate \r\n\r\nBefore summiting an issue, please make sure that:\r\n\r\n* You have removed the `.fusebox` folder in your project root\r\n* Removed node_modules, (re-installed everything) \r\n* Started the bundling process again. \r\n* Read the documentation on your subject here -> fuse-box.org\r\n-->"}}
{"actor":{"display_login":"dlannoye"}}