Skip to content

Commit

Permalink
Simplify babelrc
Browse files Browse the repository at this point in the history
  • Loading branch information
perrin4869 committed Oct 24, 2021
1 parent eeca2ba commit 571203d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .babelrc.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
module.exports = ({ env }) => env('test')
? {
plugins: ['istanbul'],
}
: {
presets: ['@babel/env', env('test') ? { target: { node: 'current' } } : {}],
};
module.exports = ({ env }) => !env('test') && {
presets: ['@babel/env'],
};

0 comments on commit 571203d

Please sign in to comment.