diff --git a/.babelrc b/.babelrc index 46df639..9b74c3e 100644 --- a/.babelrc +++ b/.babelrc @@ -1,7 +1,17 @@ { - "env": { - "test": { - "presets": ["env", "react"] - } - } -} + "presets": [ + "react", + [ + "env", + { + "targets": { + "browsers": [ + ">0.5%", + "not ie 11", + "not op_mini all" + ] + } + } + ] + ] +} \ No newline at end of file diff --git a/package.json b/package.json index f4adaf6..0ae199c 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "test:jest": "jest", "test": "npm run test:eslint && npm run test:prettier && npm run test:jest", "clean": "rm -rf __tests__ PivotTable.js* PivotTableUI.js* PlotlyRenderers.js* TableRenderers.js* Utilities.js* pivottable.css", - "build": "npm run clean && cp src/pivottable.css . && babel src --out-dir=. --source-maps --presets=env,react --plugins babel-plugin-add-module-exports", + "build": "npm run clean && cp src/pivottable.css . && babel src --out-dir=. --source-maps --plugins babel-plugin-add-module-exports", "doPublish": "npm run build && npm publish", "postpublish": "npm run clean", "deploy": "webpack -p && mv bundle.js examples && cd examples && git init && git add . && git commit -m build && git push --force git@github.com:plotly/react-pivottable.git master:gh-pages && rm -rf .git bundle.js" @@ -79,4 +79,4 @@ "webpack": "^3.8.1", "webpack-dev-server": "^2.9.3" } -} +} \ No newline at end of file