-
-
Notifications
You must be signed in to change notification settings - Fork 451
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
Can't disable cache with BABEL_DISABLE_CACHE=1 #453
Comments
Caching isn't enabled by default, it only happens if you explicitly set |
Babel certainly creates a cache even when I leave the options blank. Something along the way is caching it; perhaps |
What specifically are you seeing, and what makes you say the issue is Babel-related? You haven't given much to go on yet. |
https://github.com/dwjft/easy-import I'm using this module. I'm wondering if it is the module caching the package map in memory somewhere; though these cache issues don't exist when transpiling When I add a new package, webpack reloads, but doesn't read the new |
I think a more intuitive behavior would be: if We end up removing |
Currently Babel will invalidate the cache when you change your config or the file content, but otherwise deleting the cache folder is the best way to entirely clear it. As I noted in #453 (comment), I've also filed babel/babel#8497 which we'll explore for the |
I'm submitting a bug report
Webpack Version:
2.5.1
Babel Core Version:
6.22.1
Babel Loader Version:
6.2.10
Please tell us about your environment:
OS X
Current behavior:
Babel-loader will cache the results from the first build and continue to read from them for future builds, even when
BABEL_DISABLE_CACHE=1
is defined.e.g.:
"dev": "BABEL_DISABLE_CACHE=1 webpack-dev-server"
Expected/desired behavior:
No cache should be used at all. All code should be re-compiled every time.
BABEL_DISABLE_CACHE=1 webpack-dev-server
What is the expected behavior?
No cache to be used on future builds.
What is the motivation / use case for changing the behavior?
I don't want my stuff cached.
The text was updated successfully, but these errors were encountered: