I would like to use the system.js module manager with TypeScript. My plan is to run typescript in node
The problem is that if I mark the Main.js file (generated from Main.ts) as an entry point, it will crash with this error:
ReferenceError: system not defined
And this is normal, because my generated code starts as follows: System.register (["./Apple"], function (exports_1) {
And, of course, by default, the node class does not have a System class. So how to make typescript or node to load the system.js module?
I can create an additional js file to load it with the requirement, but I'm looking for my own solution inside typescript
Thanks!
source
share