Hi Yongqian,
As of version 1.4 this should be resolved as all plugin modules will have their paths registered automatically.
In your version you do need to do registerModulePath, you can use the pluginmanagement service to get your plugin's path dynamically and not hard code it, like this:
this
.context.service.pluginmanagement.getPluginPath(
"myplugin"
).then(
function
(sResult){
jQuery.sap.registerModulePath("myplugin",sResult);
});
Hope this answers your question.
Regards,
Guy