Skip to content

Commit

Permalink
Merge pull request #6 from developit/babel-7
Browse files Browse the repository at this point in the history
use babel7
  • Loading branch information
developit authored Mar 15, 2018
2 parents fcfab18 + 010c7c8 commit 9edb600
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
25 changes: 13 additions & 12 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,25 @@
"start": "webpack-dev-server --inline"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"@babel/core": "^7.0.0-beta.40",
"@babel/plugin-transform-react-constant-elements": "^7.0.0-beta.40",
"@babel/plugin-transform-react-jsx": "^7.0.0-beta.40",
"@babel/preset-env": "^7.0.0-beta.40",
"@babel/preset-react": "^7.0.0-beta.40",
"@babel/preset-stage-0": "^7.0.0-beta.40",
"babel-loader": "^8.0.0-beta.0",
"babel-plugin-jsx-pragmatic": "^1.0.2",
"babel-plugin-transform-react-constant-elements": "^6.23.0",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-preset-env": "^1.6.0",
"css-loader": "^0.28.7",
"html-webpack-plugin": "^2.30.1",
"node-sass": "^4.7.2",
"sass-loader": "^6.0.6",
"style-loader": "^0.19.0",
"webpack": "^3.6.0",
"webpack-dev-server": "^2.9.1"
"webpack-dev-server": "^2.11.2"
},
"dependencies": {
"babel-preset-stage-0": "^6.24.1",
"css-loader": "^0.28.7",
"d3-scale": "^1.0.7",
"d3-selection": "^1.2.0",
"node-sass": "^4.7.2",
"preact-router": "^2.6.0",
"sass-loader": "^6.0.6",
"style-loader": "^0.19.0"
"preact-router": "^2.6.0"
}
}
9 changes: 5 additions & 4 deletions demo/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,19 @@ module.exports = {
options: {
sourceMap: true,
presets: [
[require.resolve('babel-preset-env'), {
[require.resolve('@babel/preset-env'), {
targets: {
browsers: ['last 2 versions', 'IE >= 9']
},
modules: false,
loose: true
}],
require.resolve('babel-preset-stage-0')
require.resolve('@babel/preset-react'),
require.resolve('@babel/preset-stage-0')
],
plugins: [
[require.resolve('babel-plugin-transform-react-jsx'), { pragma: 'createElement' }],
require.resolve('babel-plugin-transform-react-constant-elements'),
[require.resolve('@babel/plugin-transform-react-jsx'), { pragma: 'createElement' }],
require.resolve('@babel/plugin-transform-react-constant-elements'),
[require.resolve('babel-plugin-jsx-pragmatic'), {
module: 'ceviche',
export: 'createElement',
Expand Down

0 comments on commit 9edb600

Please sign in to comment.