Load raw files as text and watch for changes
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.6k
- Forks
- 696
- Avg merge
- 8m
- Merged PRs (30d)
- 7
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names Metro, Babel, and babel-plugin-inline-import but no repository files or tests. Start by reviewing Metro’s documented raw-file handling and watch configuration, then compare the plugin’s caveat with Metro’s current behavior. Done means a documented or implemented Metro-supported way to load raw markdown and propagate changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100