fix: don't invalidate when code is invalid#67
Conversation
ArnaudBarre
left a comment
There was a problem hiding this comment.
I have the same condition in react-swc plugin 👍
|
any date for next release with this fix? |
|
@patak-dev we are also facing the same issue and waiting for a release, as manually installing this package from github doesn't work with a monorepo. |
|
Same here, would be great to see this released soon. |
|
Available in 3.0.1! |
|
Thank you @ArnaudBarre |
|
I still have the same issue vitejs/vite#11365 that vite gets stuck in an invalidating loop. |
|
I will check if it's still happening with #79 My advice is to stop doing barrels imports. Took me some hours when migrating from CRA, but that was worth it. Imports are not as beautiful, but with time you learn to don't care and IDE renaming/find usages & HMR works a lot better |
Description
This PR adds
if (!mod) returnto fix invalidate happening.This fixes vitejs/vite#11365.
Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123).