Skip to content

Commit

Permalink
Update Babel to 7.24 (#154)
Browse files Browse the repository at this point in the history
This updates babel in our `dependencies` to be sure that folks are
getting the most up-to-date version that supports new syntax like
`using` (closes
#153).

I also re-generated our `yarn.lock` because I was getting some type
errors, and removed `sourceFile` in one spot because it's no longer
needed and throws a TypeScript error.
  • Loading branch information
IanVS authored Mar 12, 2024
1 parent 8541bb8 commit 6d71e9e
Show file tree
Hide file tree
Showing 3 changed files with 231 additions and 227 deletions.
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/core": "^7.21.8",
"@babel/generator": "^7.21.5",
"@babel/parser": "^7.21.8",
"@babel/traverse": "^7.23.2",
"@babel/types": "^7.21.5",
"@babel/core": "^7.24.0",
"@babel/generator": "^7.23.6",
"@babel/parser": "^7.24.0",
"@babel/traverse": "^7.24.0",
"@babel/types": "^7.24.0",
"semver": "^7.5.2"
},
"devDependencies": {
"@types/babel__generator": "^7.6.5",
"@types/babel__traverse": "^7.20.2",
"@types/babel__generator": "^7.6.8",
"@types/babel__traverse": "^7.20.5",
"@types/node": "^18.15.13",
"@types/prettier": "^3.0.0",
"@types/semver": "^7.5.3",
Expand All @@ -72,6 +72,9 @@
"typescript": "5.2.2",
"vitest": "^0.34.5"
},
"resolutions": {
"vite": "^4.0.0"
},
"peerDependencies": {
"@vue/compiler-sfc": ">=3.0.0",
"prettier": "2 || 3"
Expand Down
1 change: 0 additions & 1 deletion src/utils/get-code-from-ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export const getCodeFromAst = ({
directives: directives,
sourceType: 'module',
interpreter: interpreter,
sourceFile: '',
leadingComments: [],
innerComments: [],
trailingComments: [],
Expand Down
Loading

0 comments on commit 6d71e9e

Please sign in to comment.