babel config

pull/12/head
cagataycivici 2019-05-31 00:21:59 +03:00
parent b10cf9eb6b
commit b75b7482ec
2 changed files with 6 additions and 1 deletions

5
.babelrc-lib Normal file
View File

@ -0,0 +1,5 @@
{
"presets": [
"@babel/env"
]
}

View File

@ -22,7 +22,7 @@ fs.readdirSync(path.resolve(__dirname, './src/components/')).forEach(folder => {
) )
execSync( execSync(
`node ${babelPath} src/components/${folder}/${file} --out-file components/${folder}/${file}` `node ${babelPath} src/components/${folder}/${file} --out-file components/${folder}/${file} --config-file=./.babelrc-lib`
) )
} }
}); });