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
{{ message }}
Repository navigation
Modified wxt.config via wxt.hook is reset on dev reloaded #939
There is a bug that causes wxt.config modified via hook to be reset. I'm modifying the outDir, but the path is broken. The path is correct at startup dev, but the reset when the HMR reloads. This is causing content-script to not reload.
Duplicate of #857. Keep this open because I like your description more. Need to think more of how exactly to solve this problem. Maybe add a new hook and make people modify config in that hook instead.
Activity
1natsu172 commentedon Aug 28, 2024
I think there is probably the cause. The
reloadConfigis being called, butresolveConfigis executed in the context before the hook.wxt/packages/wxt/src/core/wxt.ts
Lines 46 to 48 in 24cd01d
wxt/packages/wxt/src/core/wxt.ts
Lines 66 to 68 in 24cd01d
aklinker1 commentedon Aug 28, 2024
Duplicate of #857. Keep this open because I like your description more. Need to think more of how exactly to solve this problem. Maybe add a new hook and make people modify config in that hook instead.
1natsu172 commentedon Aug 28, 2024
Right, if you don't change the whole core design, a dedicated hook might be a good low-cost idea. It would be easy to understand for people.
aklinker1 commentedon Nov 28, 2024
Released in
v0.19.17