Skip to content

Commit

Permalink
Remove babel for ava
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Dec 23, 2020
1 parent 971c08b commit 6b226d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
12 changes: 3 additions & 9 deletions ava.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
const isBabelRequired = () => {
const [majorVer] = process.versions.node.split()
return Number(majorVer) < 14
}

export default {
files: ['**/*.spec.js', '!dist/**/*', '!package/**/*'],
require: isBabelRequired() ? ['@babel/register'] : undefined
}
export default () => ({
files: ['**/*.spec.js', '!dist/**/*', '!package/**/*']
})
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
"@babel/core": "^7.0.1",
"@babel/node": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/register": "^7.0.0",
"@meltwater/examplr": "^5.0.1",
"ava": "^3.3.0",
"babel-loader": "^8.0.4",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@
"@babel/types" "^7.4.4"
esutils "^2.0.2"

"@babel/register@^7.0.0", "@babel/register@^7.12.10":
"@babel/register@^7.12.10":
version "7.12.10"
resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.12.10.tgz#19b87143f17128af4dbe7af54c735663b3999f60"
integrity sha512-EvX/BvMMJRAA3jZgILWgbsrHwBQvllC5T8B29McyME8DvkdOxk4ujESfrMvME8IHSDvWXrmMXxPvA/lx2gqPLQ==
Expand Down

0 comments on commit 6b226d8

Please sign in to comment.