How to reload build extension code?

Hello,

I have created a new build extension following the official guide.

Enabled it for my project. Then I modified the source/builder.ts code, recompiled it to dist/builder.js.
But when I build the project, it uses the old version. I tried to reload the project, disable/enable plugin - nothing works. It only works when I delete / add the extension which is really inconvinient. Is there any other way to do it?

The official doc says that there should be a Reload button but it is not there in version 3.7.3

hi, try this in main.js

Editor.Message.request(“extension”, “reload”, __dirname);

Another way is restart Cocos Editor :grinning:, this bug is long ago mentioned.

could you please elaborate where exactly can I run this code? what is ‘main.js’ and where is it located?