Experience-Monks / Experience-Monks/babel-plugin-static-fs
How to bust the Babel cache?
- Dominant language
- JavaScript
- Stars
- 35
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Thanks for this great plugin.
I'm getting a problem where it doesn't seem to pick up changes to the file being inlined. I have to edit the parent JS file to cachebust it. I think this is because the parent file is stuck in Babel's cache with the inlined string, and Babel doesn't know that the underlying file has changed.
Is there any solution to this? Currently I am having to make an arbitrary whitespace change in the parent file whenever I want to edit the child file. (Excuse terminology.)
Contributor guide
Research direction
Start by reproducing the cache behavior with a parent JavaScript file and the child file it inlines, using Babel and this plugin. Trace how the plugin presents the child content to Babel and verify that editing the child causes the generated parent output to change without an arbitrary whitespace edit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100