Skip to content

Commit

Permalink
add cache bust param to index.js of esmodule plugins
Browse files Browse the repository at this point in the history
should fix hot reload
  • Loading branch information
AAGaming00 committed Sep 11, 2024
1 parent 6b78e0a commit 1d7af36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/plugin-loader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ class PluginLoader extends Logger {
try {
switch (loadType) {
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();

this.plugins.push({
Expand Down

0 comments on commit 1d7af36

Please sign in to comment.