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 my Main.js (generated from Main.ts) file as the entry point, it will crash with this error:
ReferenceError: System is not defined
And it's normal, because my generated code start like this: System.register(["./Apple"], function(exports_1) {
And for sure, there is no System class in node by default. So how to make typescript or node to load the system.js module?
I can create an extra js file to load it with require, but i'm looking for a native solution inside typescript
Thanks!