question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
VincentGarreaucommented, May 5, 2022

Any news regarding this issue? 😃

2reactions
xwchriscommented, Nov 11, 2021

I think I have find the problem, I will test the code and create a pr

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found