Can system.js replace require.js

后端 未结 2 1394
生来不讨喜
生来不讨喜 2021-02-13 22:47

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

2条回答
  •  悲&欢浪女
    2021-02-13 23:22

    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:

    
    
    

提交回复
热议问题