I'd like to collect a list of things from the open source community about what could be improved about react-native's packager. Please feel free to share any issues, feature requests or outrageous ideas that you might have. Thank you!
FWIW, on Product Pains the top packager request is symlinks. @Kureev is working on that but I think there are still some rough edges. https://productpains.com/post/react-native/symlink-support-for-packager
Also FWIW, the second most popular packager request on Product Pains is the ability to shim one module for another like webpack aliases. https://productpains.com/post/react-native/packager-support-resolvealias-ala-webpack (And then the third is a dupe of #1 so I will stop spamming product pains links ;-) )
--transformer, babelrc, upgrading Babel in node_modules, and so on. The goal here is to increase trust in the packager and not need to clear its cache, improving warm performance.import() as well as FB's style of require(). FB's require() on www is pretty interesting because it's synchronous yet allows for bundle splitting.main field in package.json they want to load another field (ex: some ideas I showed you @cpojer before). Also loading files from a caching service instead of disk to avoid disk I/O. Additionally, this would let people configure how to load non-JS files too. Every time I add an image to my assets/ folder with hot reloading enabled, I get this unexpected character error, which won't go away until I restart the packager or disable hot reloading. No clue what causes this but would love if it were fixed!

I hope this is relevant. Maybe it's more of a CLI thing. Unsure if that's the same as packager. But I think it would be great to create a quick command to clean the cache. That is of course unless you can get cache working correctly as ide suggested above, making this moot.
There are a lot of other handy commands that might benefit from shortcut access...
https://medium.com/komenco/useful-react-native-npm-scripts-6c07b04c3ac3#.ij6d2f1el
That should be --reset-cache.
Closing because the issue itself is non-actionable but we are taking all the points raised here into consideration. Thanks for participating and feel free to bring up more issues.
Adding support for custom module directories is something that would be very nice to have. Consider this case:
├───common
│ Foo.js -> requires React
│
└───web
│ Bar.js -> requires Foo.js
│
└───node_modules
└───react
When running this in the packager Foo.js will not be able to resolve react in web/node_modules/react.
My current solution to this is to copy common/ into the web directory.
also to be able to have multiple module directories like webpack. so that we can do import Foo from 'common/Foo'.
Current workaround there is to add a package.json in the common folder with "name": "common"
Most helpful comment
Reliability and lack of surprises:
--transformer, babelrc, upgrading Babel in node_modules, and so on. The goal here is to increase trust in the packager and not need to clear its cache, improving warm performance.Features:
import()as well as FB's style ofrequire(). FB'srequire()on www is pretty interesting because it's synchronous yet allows for bundle splitting.Flexibility:
mainfield in package.json they want to load another field (ex: some ideas I showed you @cpojer before). Also loading files from a caching service instead of disk to avoid disk I/O. Additionally, this would let people configure how to load non-JS files too.