Browse Source

Babel update (#2513)

* move all babel options to .babelrc file

* updated babel-loader
readme-improvements
Alexander Wunschik 7 years ago
committed by yotamberk
parent
commit
884b75ee43
3 changed files with 13 additions and 10 deletions
  1. +5
    -1
      .babelrc
  2. +3
    -4
      gulpfile.js
  3. +5
    -5
      package.json

+ 5
- 1
.babelrc View File

@ -1,3 +1,7 @@
{
"presets": ["es2015"]
"presets": ["es2015"],
"plugins": [
"transform-es3-property-literals",
"transform-es3-member-expression-literals"
]
}

+ 3
- 4
gulpfile.js View File

@ -48,11 +48,10 @@ var webpackModule = {
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel',
loader: 'babel-loader',
query: {
cacheDirectory: true,
presets: ['es2015'],
plugins: ['transform-es3-property-literals', 'transform-es3-member-expression-literals']
cacheDirectory: true, // use cache to improve speed
babelrc: true // use the .baberc file
}
}
],

+ 5
- 5
package.json View File

@ -37,12 +37,12 @@
},
"devDependencies": {
"async": "^2.0.0-rc.2",
"babel-core": "^6.6.5",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.6.0",
"babel-plugin-transform-es3-property-literals": "^6.8.0",
"babel-core": "^6.21.0",
"babel-loader": "^6.2.10",
"babel-plugin-transform-es3-member-expression-literals": "^6.8.0",
"babelify": "^7.2.0",
"babel-plugin-transform-es3-property-literals": "^6.8.0",
"babel-preset-es2015": "^6.18.0",
"babelify": "^7.3.0",
"clean-css": "^3.4.10",
"gulp": "^3.9.1",
"gulp-clean-css": "^2.0.11",

Loading…
Cancel
Save