[Feature] Webpack 5 `cache` support
See original GitHub issue- I’d be willing to implement this feature
Describe the user story
I am currently using this module as part of @marko/webpack. The loader for this module adds virtual modules while compiling the Marko
templates.
Problem is that with the new filesystem
cache in webpack 5 since those compilations are cached this module does not properly represent the virtual file system anymore.
Describe the solution you’d like
I think it’d be nice if this module would store any virtual files in the compilation in the webpack cache compilation.cache.store
and retrieve them when the compilation initializes.
Describe the drawbacks of your solution
The cache api’s are async and so it may slightly complicate the code.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Cache - webpack
Cache the generated webpack modules and chunks to improve build speed. cache is set to type: ... pack is the only supported mode...
Read more >changelog-v5/persistent-caching.md at master - GitHub
Welcome to the persistent caching guide. Opt-in. First, note that persistent caching is not enabled by default. You have to opt-in using it....
Read more >Improving Webpack Performance via Caching
Webpack and related tooling supports caching. Outputs at various stages of build the process would be saved to be reused in subsequent ...
Read more >New features in webpack 5 - LogRocket Blog
Webpack's recent update is loaded with new features: persistent cache ... supported Node.js version has increased from 6 to 8 for webpack 5....
Read more >What's New in Webpack 5 - Frontend Digest
Slow builds are one of the most common complaints from developers about webpack. The module bundler now offers an opt-in filesystem cache. This...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any news regarding this issue? 😃
I think I have find the problem, I will test the code and create a pr