razzle
razzle copied to clipboard
Better solution for "cache/razzle-babel-loader" folder
🚀 Feature request
Current default options passed to babel loader result in cache/razzle-babel-loader
folder with lots of files in project.
People workaround this by disabling this cache (makes builds slower) or by adding cache
folder into .gitignore
.
Another simple an elegant solution exists wich I propose to include as default settings.
Current Behavior
cache/razzle-babel-loader
folder is created with lots of files
Desired Behavior
cache folder is located under node_modules/.cache
- babel cache is still enabled and works
- no workspace pollution
- no need to
.gitignore
Suggested Solution
babelLoader.options.cacheDirectory = true;
This moves a folder to node_modules/.cache
where all cache folders are supposed to be
Who does this impact? Who is this for?
All users