johanholmerin / style9

CSS-in-JS compiler inspired by Meta's stylex
MIT License
570 stars 27 forks source link

Fix issue with webpack5 cache #58

Closed SukkaW closed 2 years ago

SukkaW commented 2 years ago

Webpack Virtual Module plugin doesn't support triggering a rebuild for webpack5, which can cause the module not found error when webpack5 cache is enabled (E.g., Next.js enables webpack cache by default). Currently, the only workaround is to mark this module as non-cacheable, force updating the virtual module.

Related:

johanholmerin commented 2 years ago

Released in 0.11.0