diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..c13c5f6 --- /dev/null +++ b/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["es2015"] +} diff --git a/package.json b/package.json index 53498ef..7d0b2c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redux-logger", - "version": "3.0.3", + "version": "3.0.4", "description": "Logger for Redux", "main": "dist/redux-logger.js", "module": "src/index.js", @@ -18,12 +18,6 @@ "precommit": "npm test", "prepublish": "npm run clean && npm test && npm run build" }, - "babel": { - "presets": [ - "es2015", - "stage-0" - ] - }, "eslintConfig": { "extends": "airbnb", "rules": { diff --git a/rollup.config.js b/rollup.config.js index da52aa7..a18a65b 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -13,14 +13,14 @@ export default { babel({ babelrc: false, presets: [ - ['es2015', { - modules: false, - }], - 'stage-0' - ], - plugins: [ - 'external-helpers' + [ + 'es2015', + { + modules: false, + }, + ], ], + plugins: ['external-helpers'], }), commonjs({ include: 'node_modules/**', @@ -30,6 +30,6 @@ export default { main: true, browser: true, }), - uglify() - ] + uglify(), + ], };