Browse Source

Babel and fetch.

Herby Vojčík 4 years ago
parent
commit
d71d461f6d
3 changed files with 17 additions and 2 deletions
  1. 5 0
      .babelrc
  2. 1 0
      babel-local.js
  3. 11 2
      package.json

+ 5 - 0
.babelrc

@@ -0,0 +1,5 @@
+{
+  "presets": [
+    "@babel/preset-env"
+  ]
+}

+ 1 - 0
babel-local.js

@@ -0,0 +1 @@
+require("@babel/register")();

+ 11 - 2
package.json

@@ -2,7 +2,7 @@
   "name": "vestniky",
   "version": "0.1.0",
   "description": "Loads UVO vestniky XMLs",
-  "main": "index.js",
+  "module": "index.js",
   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1"
   },
@@ -11,5 +11,14 @@
     "url": "https://lolg.it/uvo/vestniky.git"
   },
   "author": "Herby Vojčík <herby@mailbox.sk>",
-  "license": "MIT"
+  "license": "MIT",
+  "dependencies": {
+    "isomorphic-fetch": "^2.2.1"
+  },
+  "devDependencies": {
+    "@babel/core": "^7.4.5",
+    "@babel/preset-env": "^7.4.5",
+    "@babel/register": "^7.4.4",
+    "regenerator-runtime": "^0.13.2"
+  }
 }