Remove custom optimizeDeps.include in react integration#12923
Remove custom optimizeDeps.include in react integration#12923
Conversation
🦋 Changeset detectedLatest commit: 5f05c9e The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Are we confident this won't break anything? If this is already handled by the Vite plugin I'm confused that the Sanity plugimns were having trouble |
|
Apart from the |
|
@stipsan could you share a minimal repro so we can see? |
Sure, I can find time by end of next week. Is it ok to hold off on reverting the fix until then? |
|
@stipsan Would it be possible to look sooner? This is affecting a lot of users now. Even though it's just a warning message, it's confusing lots of people. We'd like to get this out early next week, so if you could take a look by Monday that would be ideal. It would give a chance to see if there are workarounds that still need to be made. It might need an upstream fix to the Vite plugin, for example. |
Understood 🙌 I'll see if I can find time by end of today! |
|
@ascorbic I'm not able to reproduce anymore. Let's go ahead then and if we get customer reports about this regressing we'll forward stackblitz repros your way ❤ |
Changes
fix #12896
ref #12735 (revert)
@vitejs/plugin-reactwill addoptimizeDeps.includethemselvesvuetooptimizeDeps.include@astrojs/solid-js/client.jsby default like how the other integrations do.I didn't do this for Preact as we're still pinning to an older version, but once we can update to the latest (tracked #12805), we can also do the same here for it.
Testing
Existing tests should pass
Docs
n/a. bug fix.