Skip to content

Commit

Permalink
Fix babel presets (fixes #35)
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Sep 8, 2017
1 parent 393c799 commit ae045b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"presets": [
"es2015-minimal",
["es2015", { "loose": true }],
"stage-0"
],
"plugins": [
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
"babel-plugin-transform-class-properties": "^6.10.2",
"babel-plugin-transform-react-jsx": "^6.8.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-es2015-minimal": "^2.0.0",
"babel-preset-es2015-minimal-rollup": "^2.1.0",
"babel-preset-stage-0": "^6.5.0",
"babel-register": "^6.9.0",
"chai": "^3.5.0",
Expand Down
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import memory from 'rollup-plugin-memory';
import babel from 'rollup-plugin-babel';

let babelRc = JSON.parse(fs.readFileSync('./.babelrc'));
babelRc.presets[0][1].modules = false;

let entry = process.env.ENTRY || 'index';

Expand All @@ -27,7 +28,7 @@ export default {
babelrc: false,
comments: false,
exclude: [],
presets: ['es2015-minimal-rollup'].concat(babelRc.presets.slice(1)),
presets: babelRc.presets,
plugins: babelRc.plugins
})
]
Expand Down

0 comments on commit ae045b0

Please sign in to comment.