-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External imports don't hot reload #9
Comments
Is anything updated? |
@eyu0415 Unfortunately not. The problem is that React Native's Metro packger does not know about the files that are imported with |
@kristerkari will they fix it? |
hello @keung7251, I'm not sure if this is something than can be fixed easily, so don't expect a quick fix. |
It'd be nice to get this fixed. Is there any way of letting Metro know about these imported SCSS files? I understand it only looks for changes in JS files, but there should be a generated JS file that corresponds to the SCSS one, right? |
Not that I know of. Of course it might be possible that there is something in Metro, but the documentation for Metro is not that great.
The |
Files that are imported using
@import
do not get live reloaded.React Native's packager does not know that the file that has changed is imported in another file, so it does not know how to reload it.
One possible fix would be to add some kind of logic that keeps track of which files are imported using @import and tell the transformer to reload the correct file.
The same issue in the Stylus transformer:
kristerkari/react-native-stylus-transformer#3
The text was updated successfully, but these errors were encountered: