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 authored and huozhi committed Aug 9, 2021
1 parent 48a2599 commit d591ce2
Show file tree
Hide file tree
Showing 30 changed files with 42 additions and 2,526 deletions.
5 changes: 2 additions & 3 deletions package.json
Expand Up @@ -56,8 +56,8 @@
}
},
"dependencies": {
"@babel/types": "7.8.3",
"babel-plugin-syntax-jsx": "6.18.0",
"@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 @@ -77,7 +77,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
@@ -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
@@ -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 d591ce2

Please sign in to comment.