diff --git a/config/build.js b/config/build.js index 1cc7d94..6849ce2 100644 --- a/config/build.js +++ b/config/build.js @@ -29,7 +29,7 @@ rollup.rollup({ entry: 'src/index.js', plugins: [ babel({ - presets: ['es2015-rollup'] + presets: ['es2015-loose-rollup'] }) ] }) @@ -48,7 +48,7 @@ rollup.rollup({ 'process.env.NODE_ENV': "'development'" }), babel({ - presets: ['es2015-rollup'] + presets: ['es2015-loose-rollup'] }) ] }) @@ -69,7 +69,7 @@ rollup.rollup({ 'process.env.NODE_ENV': "'production'" }), babel({ - presets: ['es2015-rollup'] + presets: ['es2015-loose-rollup'] }) ] }) diff --git a/config/karma.conf.js b/config/karma.conf.js index b61d192..38d27eb 100644 --- a/config/karma.conf.js +++ b/config/karma.conf.js @@ -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 diff --git a/config/webpack.dev.conf.js b/config/webpack.dev.conf.js index d9b990e..6753e80 100644 --- a/config/webpack.dev.conf.js +++ b/config/webpack.dev.conf.js @@ -19,7 +19,7 @@ module.exports = { exclude: /node_modules|vue\/dist/, loader: 'babel', query: { - presets: ['es2015'] + presets: ['es2015-loose'] } }] }, diff --git a/config/webpack.e2e.conf.js b/config/webpack.e2e.conf.js index 3022f5d..fedb2cf 100644 --- a/config/webpack.e2e.conf.js +++ b/config/webpack.e2e.conf.js @@ -12,7 +12,7 @@ module.exports = { exclude: /node_modules|vue\/dist/, loader: 'babel', query: { - presets: ['es2015'] + presets: ['es2015-loose'] } }] }, diff --git a/config/webpack.test.conf.js b/config/webpack.test.conf.js index 8c32d25..ab16422 100644 --- a/config/webpack.test.conf.js +++ b/config/webpack.test.conf.js @@ -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' diff --git a/package.json b/package.json index 0d233d5..fd34b60 100644 --- a/package.json +++ b/package.json @@ -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",