revamp babel config

This commit is contained in:
Rene Haas
2022-10-20 13:23:28 +02:00
parent d821061cd8
commit 3f1d8bc8d3
7 changed files with 187 additions and 31 deletions
+8 -1
View File
@@ -1 +1,8 @@
module.exports = require('@~local/config/babel');
const jestBabel = require('@~local/config/jest-babel');
module.exports = (api) => {
if (api.env('test')) {
return jestBabel;
}
return {};
};