{"action":"created","issue":{"url":"https://api.github.com/repos/kentcdodds/import-all.macro/issues/8","repository_url":"https://api.github.com/repos/kentcdodds/import-all.macro","labels_url":"https://api.github.com/repos/kentcdodds/import-all.macro/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/kentcdodds/import-all.macro/issues/8/comments","events_url":"https://api.github.com/repos/kentcdodds/import-all.macro/issues/8/events","html_url":"https://github.com/kentcdodds/import-all.macro/issues/8","id":325868296,"number":8,"title":"importAll as transform.","user":{"login":"lifeiscontent","id":180963,"avatar_url":"https://avatars3.githubusercontent.com/u/180963?v=4","gravatar_id":"","url":"https://api.github.com/users/lifeiscontent","html_url":"https://github.com/lifeiscontent","followers_url":"https://api.github.com/users/lifeiscontent/followers","following_url":"https://api.github.com/users/lifeiscontent/following{/other_user}","gists_url":"https://api.github.com/users/lifeiscontent/gists{/gist_id}","starred_url":"https://api.github.com/users/lifeiscontent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lifeiscontent/subscriptions","organizations_url":"https://api.github.com/users/lifeiscontent/orgs","repos_url":"https://api.github.com/users/lifeiscontent/repos","events_url":"https://api.github.com/users/lifeiscontent/events{/privacy}","received_events_url":"https://api.github.com/users/lifeiscontent/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-05-23T20:50:11Z","updated_at":"2018-05-23T21:49:01Z","closed_at":"2018-05-23T21:23:34Z","author_association":"NONE","body":"@kentcdodds first off, thanks for the badass macro.\r\n\r\nOne thing I was thinking about is using svgr and importAll.\r\n\r\ne.g. using https://github.com/evenchange4/svgr.macro\r\n\r\nand this together.\r\n\r\nbasically I'd like to be able to do something like this\r\n\r\nimport my svg files, transform them using svgr and output a const icons object which has the mapping of the component names so I can then create an Icon component which picks one from the `icons` by a `name` prop.\r\n\r\nIs this currently possible? Or could we add this kind of transform function to import-all?"},"comment":{"url":"https://api.github.com/repos/kentcdodds/import-all.macro/issues/comments/391507654","html_url":"https://github.com/kentcdodds/import-all.macro/issues/8#issuecomment-391507654","issue_url":"https://api.github.com/repos/kentcdodds/import-all.macro/issues/8","id":391507654,"user":{"login":"lifeiscontent","id":180963,"avatar_url":"https://avatars3.githubusercontent.com/u/180963?v=4","gravatar_id":"","url":"https://api.github.com/users/lifeiscontent","html_url":"https://github.com/lifeiscontent","followers_url":"https://api.github.com/users/lifeiscontent/followers","following_url":"https://api.github.com/users/lifeiscontent/following{/other_user}","gists_url":"https://api.github.com/users/lifeiscontent/gists{/gist_id}","starred_url":"https://api.github.com/users/lifeiscontent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lifeiscontent/subscriptions","organizations_url":"https://api.github.com/users/lifeiscontent/orgs","repos_url":"https://api.github.com/users/lifeiscontent/repos","events_url":"https://api.github.com/users/lifeiscontent/events{/privacy}","received_events_url":"https://api.github.com/users/lifeiscontent/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T21:49:01Z","updated_at":"2018-05-23T21:49:01Z","author_association":"NONE","body":"@kentcdodds ok, thanks for the info. Is there some documentation on how the internals of babel macros work? or best practices? like... if you shouldn't compose multiple macros together, etc. I know its still a fairly new concept so it'd make sense if something like that isn't available yet. Either way, thanks for creating such awesome projects ❤️ "}}
{"actor":{"display_login":"lifeiscontent"}}