Skip to content

Commit

Permalink
refactor: use babel parer
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyinws committed Nov 19, 2023
1 parent a9f28d0 commit 149dd23
Show file tree
Hide file tree
Showing 11 changed files with 315 additions and 695 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,30 +58,29 @@
}
},
"dependencies": {
"acorn-walk": "^8.2.0",
"ast-kit": "^0.11.2",
"magic-string": "^0.30.0",
"sirv": "^2.0.3",
"source-map": "^0.7.4"
},
"devDependencies": {
"@antfu/eslint-config": "^1.1.0",
"@antfu/ni": "^0.21.2",
"@antfu/utils": "^0.7.2",
"@babel/types": "^7.23.3",
"@nuxt/kit": "^3.8.0",
"@nuxt/schema": "^3.8.0",
"@types/fs-extra": "^11.0.3",
"@types/node": "^18.15.11",
"bumpp": "^9.1.0",
"eslint": "^8.53.0",
"esno": "^0.16.3",
"fs-extra": "^11.1.1",
"lint-staged": "^13.2.0",
"pnpm": "^8.1.1",
"rimraf": "^4.4.1",
"simple-git-hooks": "^2.8.1",
"typescript": "^5.0.3",
"unbuild": "^2.0.0",
"vite": "^4.2.1",
"vite": "^5.0.0",
"vitest": "^0.29.8"
},
"simple-git-hooks": {
Expand Down
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@vue/tsconfig": "^0.3.2",
"npm-run-all": "^4.1.5",
"typescript": "~5.0.4",
"vite": "^4.3.4",
"vite": "^5.0.0",
"vite-plugin-inspect": "^0.7.26",
"vite-plugin-turbo-console": "workspace:*",
"vue-tsc": "^1.6.4"
Expand Down
4 changes: 2 additions & 2 deletions playground/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const b = "1232133"
console.log("🚀 ~ file: App.vue:20 ~ b:", b)
console.log(a,b)
// console.log("🚀 ~ file: App.vue:20 ~ b:", b)
// console.log(a,b)
</script>

<template>
Expand Down
21 changes: 3 additions & 18 deletions playground/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,8 @@ import App from './App.vue'



console.log()


const foo = 'foo'
const bar = 'bar'
console.log(`
${foo},
${bar}
`);

console.log({foo,bar})

console.log({
foo,
bar: {
foo,bar
}
})
console.log(123)
console.log('aaa')
console.log(App)

createApp(App).mount('#app')
Loading

0 comments on commit 149dd23

Please sign in to comment.