Browse Source

scaffolding: quickfix of grunt not compiling `fetch`

Herby Vojčík 5 years ago
parent
commit
398f196d72
1 changed files with 1 additions and 0 deletions
  1. 1 0
      grunt-init-project/root/Gruntfile.js

+ 1 - 0
grunt-init-project/root/Gruntfile.js

@@ -74,6 +74,7 @@ module.exports = function (grunt) {
                     'src/{%= name %}-Tests.st' // list all tests in dependency order
                 ],
                 amd_namespace: '{%= namespace %}',
+                jsGlobals: ['fetch'], // code calling the backend needs this atm
                 libraries: ['amber/core/SUnit', 'amber/web/Web', 'silk/Silk']
             }
         },