diff --git a/.babelrc-lib b/.babelrc-lib new file mode 100644 index 000000000..95f66ec83 --- /dev/null +++ b/.babelrc-lib @@ -0,0 +1,5 @@ +{ + "presets": [ + "@babel/env" + ] +} \ No newline at end of file diff --git a/build-lib.js b/build-lib.js index 08c923652..387bd64c9 100644 --- a/build-lib.js +++ b/build-lib.js @@ -22,7 +22,7 @@ fs.readdirSync(path.resolve(__dirname, './src/components/')).forEach(folder => { ) 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` ) } });