Akryum / vue-cli-plugin-apollo

🚀 @vue/cli plugin for Vue Apollo
https://vue-cli-plugin-apollo.netlify.com/
478 stars 110 forks source link

Drop support for cache-loader on webpack 5+ #603

Open nVitius opened 3 years ago

nVitius commented 3 years ago

Since the release of webpack 5, cache-loader has been deprecated. It currently continues to work with webpack 5, but it has a peerDependency on webpack 4. This causes installs to fail on newer versions of npm 7.

I have a PR open on vue-cli (which intends to support webpack 5) that drops usage of cache-loader in favor of the new filesystem cache introduced with webpack 5.

The vue-ui package (one of the packages in @vue/cli) depends on this plugin.

nVitius commented 3 years ago

@Akryum Can you take a look at this PR?

Alternatively, we can selectively use cache-loader only if the package is available. Let me know and I can make that change.