Skip to content

Commit

Permalink
perf: drop babel 6 support (#730)
Browse files Browse the repository at this point in the history
It's been a while since babel 7 is out. I think it makes sense to get
rid from old babel dependencies and bump to the latest version.
  • Loading branch information
TrySound committed Aug 6, 2021
1 parent bdc8d5d commit 9f0eeea
Show file tree
Hide file tree
Showing 26 changed files with 51 additions and 2,529 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
}
},
"dependencies": {
"@babel/helper-module-imports": "7.12.5",
"@babel/types": "7.8.3",
"babel-plugin-syntax-jsx": "6.18.0",
"@babel/helper-module-imports": "7.14.5",
"@babel/plugin-syntax-jsx": "7.14.5",
"@babel/types": "7.15.0",
"convert-source-map": "1.7.0",
"loader-utils": "1.2.3",
"source-map": "0.7.3",
Expand All @@ -78,7 +78,6 @@
"@babel/register": "7.12.1",
"@babel/runtime": "7.12.5",
"ava": "1.2.1",
"babel-core": "6.26.3",
"babel-plugin-macros": "2.8.0",
"eslint-config-prettier": "4.0.0",
"husky": "4.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/babel-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import jsx from 'babel-plugin-syntax-jsx'
import jsx from '@babel/plugin-syntax-jsx'

export default function() {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/babel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Packages
import jsx from 'babel-plugin-syntax-jsx'
import jsx from '@babel/plugin-syntax-jsx'

import { visitor as externalStylesVisitor } from './babel-external'

Expand Down
35 changes: 0 additions & 35 deletions test/babel6/_transform.js

This file was deleted.

24 changes: 0 additions & 24 deletions test/babel6/attribute.js

This file was deleted.

95 changes: 0 additions & 95 deletions test/babel6/external.js

This file was deleted.

0 comments on commit 9f0eeea

Please sign in to comment.