facebook/metro

Load raw files as text and watch for changes

voxlz opened this issue · 0 comments

Do you want to request a feature or report a bug?
Feature

What is the current behavior?
Using babel and metro, and a babel plugin called "babel-plugin-inline-import" I can import raw markdown as text in code. But like mentioned on their caveats, there seems to be a limitation on babel so that when the markdown file changes it does not propegate.

What is the expected behavior?
There are plugins for webpack like https://github.com/elliottsj/babel-inline-import-loader that does exactly this. A similar feature for metro would be nice. Perhaps it's even possible with metro's current features, but if so it seems to be badly documented, as I can't find anything.