You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
voxlz
changed the title
Load markdown and watch for changes
Load raw files as text and watch for changes
Apr 16, 2024
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.The text was updated successfully, but these errors were encountered: