During dev mode, each time node_modules package imports file internally, makes that module have unique identity.
During dev mode, each time node_modules package imports file internally, makes that module have unique identity.
// inside node_modules/some-package
// a.js
export const uniqueVariable = {}
// b.jsx
import { uniqueVariable } from './a'
export compare = (variable) => uniqueVariable === variable
// index.jsx
import { uniqueVariable } from './a'
import { compare } from './b'
compare(uniqueVariable) // Produces false
After updating to latest Solid version, from Solid 1.4.4 I noticed that useContext broke with my library, and that lead me to discovering this issue. The issue only occurs during dev mode and only inside with node_modules.
I manually edited node_module of my package to check.

What version of the plugin are you using? And do you still have this problem? We did a lot of work to get deduping to work but I imagine there are still gaps.
Tried updated everything to the latest, so plugin version would be 2.6.1, I am still experiencing this issue.
I think this might be related to https://github.com/solidjs/vite-plugin-solid/issues/80 since my context is also defined in tsx file, but I haven't tested to see if that is the root issue.