From d1879046d94fb9ff4f3aa6e56549b0b49c7bc5a3 Mon Sep 17 00:00:00 2001 From: Zalmoxisus Date: Thu, 13 Dec 2018 03:33:36 +0200 Subject: [PATCH] Fix babel transpiling --- packages/redux-devtools-trace-monitor/.babelrc | 11 ++++++++++- packages/redux-devtools-trace-monitor/package.json | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/redux-devtools-trace-monitor/.babelrc b/packages/redux-devtools-trace-monitor/.babelrc index f041bdcb..35dd1703 100644 --- a/packages/redux-devtools-trace-monitor/.babelrc +++ b/packages/redux-devtools-trace-monitor/.babelrc @@ -1,4 +1,13 @@ { "presets": [ ["env", { "modules": "commonjs" }], "react", "flow" ], - "plugins": [ "transform-class-properties", "transform-object-rest-spread", "add-module-exports", "transform-decorators-legacy" ] + "plugins": [ + ["transform-runtime", { + "polyfill": false, + "regenerator": true + }], + "transform-class-properties", + "transform-object-rest-spread", + "add-module-exports", + "transform-decorators-legacy" + ] } diff --git a/packages/redux-devtools-trace-monitor/package.json b/packages/redux-devtools-trace-monitor/package.json index 8be31dcb..afb5c372 100644 --- a/packages/redux-devtools-trace-monitor/package.json +++ b/packages/redux-devtools-trace-monitor/package.json @@ -19,8 +19,8 @@ "lint": "eslint src test", "lint:fix": "eslint --fix src test", "test": "jest --no-cache", - "postinstall": "npm run build", - "prepublishOnly": "npm run lint && npm run test && npm run clean && npm run build" + "prepare": "npm run clean && npm run build", + "prepublishOnly": "npm run lint && npm run test" }, "devDependencies": { "babel-cli": "^6.10.1",