I\'m using requirejs in a large project. This project will soon be upgraded to angular2.
Angular2 uses system.js, so I\'m thinking of switching to system.js too. Should
I just switched to system.js too. You need to replace your require.js with system.js and add simple script tag. So it should look like this:
<script src="~/lib/system.js/dist/system.js" type="text/javascript"></script>
<script>
// set our baseURL reference path
System.config({
baseURL: '/app'
});
System.import('startup.js');
</script>
in addition to above steps set
System.defaultJSExtensions = true;
by default systemjs
is not adding extension .js