Unable to load plugin in ts file

Plugin is not getting loaded in extension. I want to load it in ts file constructor. Please share me the sample, currently we have the sample for loading the plugin in js(https://overwolf.github.io/docs/topics/simple-io-plugin)

here is the log information
2020-12-01 15:11:32,180 (INFO) ================== new session ==================
2020-12-01 15:11:32,182 (ERROR) </dist/background/background.js> (:459) - Uncaught TypeError: OverwolfPlugin_1.OverwolfPlugin is not a constructor

here is the code sample:

Hi, and thanks for the feedback.

We will check the issue and we will update you here.


Moran Weiss has given his inputs. It is working now. Thank you.

Great. If you like, you can share the solution here. Other people may found it usefull.

just allowing the function to be exportable then it would be recognized.
export function OverwolfPlugin(extraObjectNameInManifest, addNameToObject) {

1 Like