What is the need for SystemJS in Angular?

Technology CommunityCategory: AngularWhat is the need for SystemJS in Angular?
VietMX Staff asked 3 years ago

When tsc compiles typescript into JavaScript, you end up with a bunch of js files on your local system. They somehow need to be loaded into a browser. Since browsers don’t support native ES6 module loading yet, you have two options, either put them all into your index.html file in the correct order of dependencies, or you can use a loader to do that all for you. You specify the root for all modules, and then all files are loaded and executed by that loader in the correct order of dependencies. There are many loaders: requirejswebpacksystemjs and others.