-
Notifications
You must be signed in to change notification settings - Fork 318
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
feat: cache invalidation on .babelrc update #865
base: feat-relative-cache-path
Are you sure you want to change the base?
Conversation
5db7b69
to
3c60939
Compare
workflow: benchmarks/sizeComparison of minified (terser) and compressed (brotli) size results, measured in bytes. Smaller is better.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nitpick before I merge this.
try { | ||
await fs.access(babelrcPath); | ||
console.log('Found babelrc:', babelrcPath); | ||
return babelrcPath; | ||
} catch { | ||
currentDir = path.dirname(currentDir); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't use fs.access
. Use fs.exists
instead. That returns a boolean and won't throw an error.
Also needs to be rebased. |
What changed / motivation ?
Let's add cache invalidation on .babelrc config update
Testing
Added tests writing .babelrc update
Pre-flight checklist
Contribution Guidelines