SystemJS newModule () with class (function) not object
I have several global classes (JS classes with prototype syntax) that need to be manually added to the registry using System.set (moduleName, Module). Since the second parameter is of type Module, I need to use System.newModule (object).
But, if I pass a non-object to System.newModule (), it throws - Uncropping TypeError: Expected object.
Am I doing it wrong? Is there any other way to do this?
+3
source to share