a2-in-memory-web-api
a2-in-memory-web-api copied to clipboard
Systemjs independence.
Currently i'm test driving Angular2 on a ES6 project. This project is built using Webpack with babel as loader. I try to install your package using NPM. The problem i'm facing is that importing "a2-in-memory-web-api/core" into my code fails once the application is loaded into the browser because Systemjs is not present. This is because Webpack output do not use Systemjs. I look around for solutions to this problem by looking into the angular2 NPM package code and notice that the code use Commonjs packaging. This means that projects using this package can be built using Webpack or Browserify independently of the use of module definition on the browser. I know i can build a2-in-memory-web-api myself to satisfy my requirements but i think the correct thing here would be to follow Angular2 example on not forcing the user on using a specific module definition on the browser.
If you support this idea i will be glad to help you with a PR. This package is very interesting for me. I may help you with other issues.
+1