diff --git a/.babelrc b/.babelrc index 6848697..f3a0011 100644 --- a/.babelrc +++ b/.babelrc @@ -6,5 +6,14 @@ } }], "stage-1" - ] + ], + "plugins": [ + [ + "transform-runtime", + { + "polyfill": false, + "regenerator": true + } + ] + ] } diff --git a/package.json b/package.json index f840cce..65e8394 100644 --- a/package.json +++ b/package.json @@ -24,13 +24,14 @@ }, "dependencies": { "@types/jest": "^23.3.1", - "babel-polyfill": "^6.26.0", + "babel-runtime": "^6.26.0", "eosjs-ecc": "^4.0.1", "text-encoding": "^0.6.4" }, "devDependencies": { "@types/node": "^10.3.1", "babel-cli": "^6.26.0", + "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-env": "^1.7.0", "babel-preset-stage-1": "^6.24.1", "jest": "^23.5.0", diff --git a/src/index.ts b/src/index.ts index 09ce77e..ad820ce 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,3 @@ -import "babel-polyfill"; import Api from "./eosjs-api"; import * as ApiInterfaces from "./eosjs-api-interfaces"; import JsonRpc from "./eosjs-jsonrpc";