babel config
parent
b10cf9eb6b
commit
b75b7482ec
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"presets": [
|
||||||
|
"@babel/env"
|
||||||
|
]
|
||||||
|
}
|
|
@ -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`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue