You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi , how i can enable absolute path for vite HMR ? because actually if i save ex: a file named base.c.ts , the main file will not detect change if i not add the relative path like this '../components/base.c' !?
Is there a option to activate to allow detection for absolute path with alias ? @.../.../components ?
People here have same issue, but no solution seem share ! https://stackoverflow.com/a/73511213/3272238
import*asCfrom'../components/base.c';// work with hmr import*asCfrom'@GAME/ecs/components';// not detected
i try this in vite.config.ts, but is seem not work
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hi , how i can enable absolute path for vite HMR ? because actually if i save ex: a file named
base.c.ts
, the main file will not detect change if i not add the relative path like this'../components/base.c'
!?Is there a option to activate to allow detection for absolute path with alias ?
@.../.../components
?People here have same issue, but no solution seem share !
https://stackoverflow.com/a/73511213/3272238
i try this in vite.config.ts, but is seem not work
Beta Was this translation helpful? Give feedback.
All reactions