Add babel

This commit is contained in:
Nathan Bierema 2020-08-06 14:00:16 -04:00
parent 68826ebb09
commit fc79ba6237
2 changed files with 12 additions and 2 deletions

View File

@ -0,0 +1,4 @@
{
"presets": ["@babel/preset-env"],
"plugins": ["@babel/plugin-proposal-class-properties"]
}

View File

@ -4,9 +4,11 @@
"description": "Serialize unserializable data and parse it back.",
"main": "index.js",
"scripts": {
"lint": "eslint src test",
"clean": "rimraf lib",
"build": "babel src --out-dir lib",
"test": "jest --no-cache",
"prepublish": "npm run lint && npm run test"
"prepare": "npm run build",
"prepublishOnly": "npm run test && npm run clean && npm run build"
},
"repository": {
"type": "git",
@ -23,6 +25,10 @@
},
"homepage": "https://github.com/reduxjs/redux-devtools",
"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.0",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/preset-env": "^7.11.0",
"immutable": "^3.8.2"
},
"dependencies": {