Skip to content
This repository has been archived by the owner on Dec 25, 2017. It is now read-only.

Commit

Permalink
fix(validation): change babel es2015 preset to es2015 loose (for IE 9…
Browse files Browse the repository at this point in the history
…/10)
  • Loading branch information
kazupon committed Mar 11, 2016
1 parent 3ec80b3 commit bd1a21b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions config/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ rollup.rollup({
entry: 'src/index.js',
plugins: [
babel({
presets: ['es2015-rollup']
presets: ['es2015-loose-rollup']
})
]
})
Expand All @@ -48,7 +48,7 @@ rollup.rollup({
'process.env.NODE_ENV': "'development'"
}),
babel({
presets: ['es2015-rollup']
presets: ['es2015-loose-rollup']
})
]
})
Expand All @@ -69,7 +69,7 @@ rollup.rollup({
'process.env.NODE_ENV': "'production'"
}),
babel({
presets: ['es2015-rollup']
presets: ['es2015-loose-rollup']
})
]
})
Expand Down
2 changes: 1 addition & 1 deletion config/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = function (config) {
exclude: /node_modules|vue\/dist/,
loader: 'babel',
query: {
presets: ['es2015'],
presets: ['es2015-loose'],
plugins: [
'babel-plugin-espower'
// NOTE: disable, see https://github.com/speedskater/babel-plugin-rewire#istanbul
Expand Down
2 changes: 1 addition & 1 deletion config/webpack.dev.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
exclude: /node_modules|vue\/dist/,
loader: 'babel',
query: {
presets: ['es2015']
presets: ['es2015-loose']
}
}]
},
Expand Down
2 changes: 1 addition & 1 deletion config/webpack.e2e.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
exclude: /node_modules|vue\/dist/,
loader: 'babel',
query: {
presets: ['es2015']
presets: ['es2015-loose']
}
}]
},
Expand Down
2 changes: 1 addition & 1 deletion config/webpack.test.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
exclude: /node_modules|vue\/dist/,
loader: 'babel',
query: {
presets: ['es2015'],
presets: ['es2015-loose'],
plugins: [
'babel-plugin-espower',
'babel-plugin-rewire'
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"babel-plugin-transform-es2015-modules-commonjs": "^6.7.0",
"babel-polyfill": "^6.5.0",
"babel-preset-es2015": "^6.5.0",
"babel-preset-es2015-rollup": "^1.0.0",
"babel-preset-es2015-loose": "^7.0.0",
"babel-preset-es2015-loose-rollup": "git+https://github.com/kazupon/babel-preset-es2015-loose-rollup.git#master",
"cz-conventional-changelog": "^1.1.4",
"eslint": "^2.3.0",
"eslint-config-standard": "^5.1.0",
Expand Down

0 comments on commit bd1a21b

Please sign in to comment.