cacheProvider options for @wyw-in-js/webpack-loader doesn't support custom memoryCache #107
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
bundler: webpack 📦
Issue is related to webpack bundler
needs: complete repro 🖥️
Issue need to have complete repro provided
platform: ssr 🛠️
Issue related to SSR
Environment
Description
Hi, I try to custom the
cacheProvider
option in webpack.But it can't generate css anymore
Reproducible Demo
If I launch
pnpm build
. I will only got an empty css file indist/main.css
.I reuse
https://github.com/Anber/wyw-in-js/blob/main/packages/webpack-loader/src/cache.ts
as template for my cacheMemory.In my project, I want to override some functions.
I have make some investigation and
https://github.com/Anber/wyw-in-js/blob/main/packages/webpack-loader/src/index.ts
seem to work buthttps://github.com/Anber/wyw-in-js/blob/main/packages/webpack-loader/src/outputCssLoader.ts
doesn't getcacheProvider
option. So it break.Update:
I find a workaround:
The text was updated successfully, but these errors were encountered: