Question:
How to auto call System or AMD modules without manually adding a script to call the registered/defined module ?
Description:
When I'm generating my es5 file using the System module defined in my tsconfig, I get the expected output with System.register(/* ... */) which of course doesn't get run when added to my page.
Is there a way to avoid adding a script tag to my HTML file to manually call my modules?
<!-- module script added above -->
<script>
System.get('MODULE_NAME_HERE');
</script>
Extra:
If I could I'd just forego System/Amd module's completely. However, it's required the moment I decide to create one outFile while using import/export in Typescript. If someone has a solution to this, it would save me a big headache. Thanks.