{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/metro/issues/334","repository_url":"https://api.github.com/repos/facebook/metro","labels_url":"https://api.github.com/repos/facebook/metro/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/facebook/metro/issues/334/comments","events_url":"https://api.github.com/repos/facebook/metro/issues/334/events","html_url":"https://github.com/facebook/metro/issues/334","id":391537804,"node_id":"MDU6SXNzdWUzOTE1Mzc4MDQ=","number":334,"title":"Is there a simple replacement for @providesModule?","user":{"login":"MattFoley","id":1182042,"node_id":"MDQ6VXNlcjExODIwNDI=","avatar_url":"https://avatars2.githubusercontent.com/u/1182042?v=4","gravatar_id":"","url":"https://api.github.com/users/MattFoley","html_url":"https://github.com/MattFoley","followers_url":"https://api.github.com/users/MattFoley/followers","following_url":"https://api.github.com/users/MattFoley/following{/other_user}","gists_url":"https://api.github.com/users/MattFoley/gists{/gist_id}","starred_url":"https://api.github.com/users/MattFoley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattFoley/subscriptions","organizations_url":"https://api.github.com/users/MattFoley/orgs","repos_url":"https://api.github.com/users/MattFoley/repos","events_url":"https://api.github.com/users/MattFoley/events{/privacy}","received_events_url":"https://api.github.com/users/MattFoley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-17T02:41:19Z","updated_at":"2018-12-17T16:32:42Z","closed_at":"2018-12-17T16:32:41Z","author_association":"NONE","body":"**Do you want to request a *feature* or report a *bug*?**\r\n\r\nFeature request, I think?\r\n\r\n**What is the current behavior?**\r\n\r\nI can no longer `import myClass from \"MyClass\";` where said class contains `@providesModule myClass`.\r\n\r\nI'm not sure if this is the right place to ask, but a commenter over in this [issue](https://github.com/facebook/react-native/issues/21152) suggested to ask the Metro team. I've used `@providesModule` since I started with React Native (~3 years ago) and now have a massive project. I'm looking to upgrade to the latest React Native version, but since `@providesModule` has been removed I'm not sure how to migrate my code base, short of modifying thousands of import statements.\r\n\r\nIs there a way to easily enable this type of functionality?"}}
{"actor":{"display_login":"rubennorte"}}