Switching to babel

This commit is contained in:
peteruithoven
2017-07-20 11:20:43 +02:00
parent 580b41413f
commit cfcd839baa
5 changed files with 1675 additions and 90 deletions

19
.babelrc Normal file
View File

@ -0,0 +1,19 @@
{
"env": {
// transpile to common node & browser compatible js, keeping modules
"module": {
"presets": [
["latest", {
"modules": false
}]
]
},
// transpile to common node & browser compatible js, using commonjs
"main": {
"presets": ["latest"]
}
},
"plugins": [
"babel-plugin-transform-object-rest-spread"
]
}