mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 20:01:57 +00:00
add cache bust param to index.js of esmodule plugins
should fix hot reload
This commit is contained in:
@@ -421,7 +421,7 @@ class PluginLoader extends Logger {
|
|||||||
try {
|
try {
|
||||||
switch (loadType) {
|
switch (loadType) {
|
||||||
case PluginLoadType.ESMODULE_V1:
|
case PluginLoadType.ESMODULE_V1:
|
||||||
const plugin_exports = await import(`http://127.0.0.1:1337/plugins/${name}/dist/index.js`);
|
const plugin_exports = await import(`http://127.0.0.1:1337/plugins/${name}/dist/index.js?t=${Date.now()}`);
|
||||||
let plugin = plugin_exports.default();
|
let plugin = plugin_exports.default();
|
||||||
|
|
||||||
this.plugins.push({
|
this.plugins.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user