Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(css): fix stale css when reloading with hmr disabled (#10270) #11506

Merged
merged 1 commit into from
Jan 4, 2023

Commits on Dec 27, 2022

  1. fix(css): fix stale css when reloading with hmr disabled (vitejs#10270)

    In the non-hmr path, when invalidating a module, it wasn't invalidating
    the importers. This meant that CSS dynamically generated based on a
    module's contents (e.g., what tailwind does) would not regenerate
    when refreshing a page.
    
    The HMR code path already invalidated importers, which is why the bug
    didn't exist with HMR enabled. This change makes the invalidation
    consistent between HMR and non-HMR.
    russelldavis committed Dec 27, 2022
    Configuration menu
    Copy the full SHA
    1120996 View commit details
    Browse the repository at this point in the history