Permalink
Browse files

build(babel): upgrade to preset-env v2

  • Loading branch information...
axe312ger committed Aug 16, 2017
1 parent 7173edc commit db204edd76b1152dd7dc63dbc6fa40719a0e9bb9
Showing with 11 additions and 6 deletions.
  1. +4 −1 .babelrc
  2. +4 −4 package.json
  3. +2 −0 src/app/app.js
  4. +1 −1 webpack.config.js
View
@@ -7,8 +7,11 @@
"presets": [
"preact",
["env", {
"useBuiltIns": "entry",
"targets": {
"browsers": ["last 2 versions", "safari > 8", "not ie < 11"]
"browsers": [
"last 2 versions"
]
}
}]
]
View
@@ -21,16 +21,16 @@
"node": ">= 7.6.0"
},
"devDependencies": {
"babel-cli": "^6.24.0",
"babel-core": "^6.24.0",
"babel-cli": "7.0.0-beta.0",
"babel-core": "7.0.0-beta.0",
"babel-eslint": "^7.2.1",
"babel-loader": "^7.1.1",
"babel-plugin-date-fns": "^0.1.0",
"babel-plugin-transform-async-to-generator": "^6.22.0",
"babel-plugin-transform-class-properties": "^6.23.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.0",
"babel-polyfill": "7.0.0-beta.0",
"babel-preset-env": "2.0.0-beta.0",
"babel-preset-preact": "^1.1.0",
"css-loader": "^0.28.4",
"eslint": "^4.3.0",
View
@@ -1,3 +1,5 @@
import 'babel-polyfill'
import { h, render } from 'preact'
import Router from 'preact-router'
import { Provider } from 'preact-redux'
View
@@ -12,7 +12,7 @@ const __PROD__ = process.env.NODE_ENV === 'production'
const webpackConfig = {
entry: {
app: ['babel-polyfill', join(webpackSource, 'app.js')]
app: [join(webpackSource, 'app.js')]
},
devtool: __DEV__ ? '#cheap-eval-source-map' : false,
output: {

0 comments on commit db204ed

Please sign in to comment.