bAN
bAN

Reputation: 13835

Can I replace systemJS by webpack with angular2

I understood that systemJS and webpack are doing the same. So I would like to replace systemJS by webpack but when I'm removing the system.js script reference in my html page I get the following error:

angular2.js:2 Uncaught ReferenceError: System is not defined

Does it means that angular2 is using SystemJS as module loader without the possibility to replace it by another one?

Upvotes: 3

Views: 945

Answers (2)

Frederick Mfinanga
Frederick Mfinanga

Reputation: 1155

remove the following script on your index.html

<script src="node_modules/systemjs/dist/system.js"></script>
or
<script src="https://code.angularjs.org/tools/system.js"></script>

then go ahead and add webpack

Upvotes: 0

Related Questions