From b75b7482ec9c09aba5f3aef042673b3bfd3966f8 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Fri, 31 May 2019 00:21:59 +0300 Subject: [PATCH] babel config --- .babelrc-lib | 5 +++++ build-lib.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .babelrc-lib 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` ) } });