This commit is contained in:
Liyas Thomas
2020-08-17 09:22:02 +05:30
parent e68ad7331f
commit f57ac978ae
3 changed files with 3548 additions and 4 deletions

21
babel.config.js Normal file
View File

@@ -0,0 +1,21 @@
function isBabelLoader(caller) {
return caller && caller.name === "babel-loader"
}
module.exports = function (api) {
if (api.env("test") && !api.caller(isBabelLoader)) {
return {
presets: [
[
"@babel/preset-env",
{
targets: {
node: "current",
},
},
],
],
}
}
return {}
}