Welcome to Shaun Luttin's public notebook. It contains rough, practical notes. The guiding idea is that, despite what marketing tells us, there are no experts at anything. Sharing our half-baked ideas helps everyone. We're all just muddling thru. Find out more about our work at bigfont.ca.

Use the whatwg-fetch polyfil with the aurelia-fetch-client and the aurelia-cli.

Tags: aureila, aurelia-fetch-client, software-development, aurelia-cli

Install the polyfil.

npm install whatwg-fetch --save

Preppend the polyfil to the aurelia.json > vendor-bundle.

"bundles": [
  {
    "name": "vendor-bundle.js",
    "prepend": [
      "node_modules/whatwg-fetch/fetch.js",
      "node_modules/bluebird/js/browser/bluebird.core.js",
      "node_modules/requirejs/require.js"
    ],
    "dependencies": [
      "aurelia-binding",
      "aurelia-bootstrapper",
      "aurelia-dependency-injection",
      "aurelia-event-aggregator",
      "aurelia-fetch-client",
      "aurelia-framework",
      "aurelia-history",