Skip to content
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

Load raw files as text and watch for changes #1253

Open
voxlz opened this issue Apr 16, 2024 · 0 comments
Open

Load raw files as text and watch for changes #1253

voxlz opened this issue Apr 16, 2024 · 0 comments

Comments

@voxlz
Copy link

voxlz commented 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.

@voxlz voxlz changed the title Load markdown and watch for changes Load raw files as text and watch for changes Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant