Fix babel transpiling

This commit is contained in:
Zalmoxisus 2018-12-13 03:33:36 +02:00
parent 1806f372f1
commit d1879046d9
2 changed files with 12 additions and 3 deletions

View File

@ -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"
]
}

View File

@ -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",