Closed cyanzhong closed 2 months ago
The "__VITE_PRELOAD__" replacement no longer works in vite 5.3 because of this change: https://github.com/vitejs/vite/pull/16562
"__VITE_PRELOAD__"
The reason is that the produced marker is just __VITE_PRELOAD__, no quotes.
__VITE_PRELOAD__
I updated the regex to support both versions, by taking the quote as an optional pattern.
Tested both vite 5.3 and vite 5.2.12, working fine.
Hey @richardtallent could you please help review and tag a release? Thank you!
Feel free to make modifications, like just removing the quote, I am fine with that.
Done
Thank you!
The
"__VITE_PRELOAD__"
replacement no longer works in vite 5.3 because of this change: https://github.com/vitejs/vite/pull/16562The reason is that the produced marker is just
__VITE_PRELOAD__
, no quotes.I updated the regex to support both versions, by taking the quote as an optional pattern.
Tested both vite 5.3 and vite 5.2.12, working fine.