diff --git a/.babelrc b/.babelrc index 41bd6204d..97f31eb6e 100644 --- a/.babelrc +++ b/.babelrc @@ -1,6 +1,6 @@ { "presets": [ - [ "es2015", { "loose": true, "modules" : false } ], + [ "env", { "loose": true, "modules" : false } ], "stage-0", "react" ], diff --git a/package.json b/package.json index a229d89a3..f597157e6 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "babel-plugin-transform-react-remove-prop-types": "^0.4.5", "babel-plugin-transform-runtime": "^6.23.0", "babel-polyfill": "^6.23.0", - "babel-preset-es2015": "^6.24.1", + "babel-preset-env": "^6.24.1", "babel-preset-react": "^6.24.1", "babel-preset-stage-0": "^6.24.1", "babel-runtime": "^6.23.0", diff --git a/src/one-page.js b/src/one-page.js index c384249ef..521456366 100644 --- a/src/one-page.js +++ b/src/one-page.js @@ -67,7 +67,7 @@ const loadSpectacleScript = () => { const input = template(renderFn); const output = Babel.transform(input, { presets: [ - [ 'es2015', { 'loose': true, 'modules': false } ], + [ 'env', { 'loose': true, 'modules': false } ], 'stage-0', 'react' ]