Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use babel parser #12

Merged
merged 5 commits into from
Nov 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: pnpm

- name: Setup
run: npm i -g @antfu/ni
Expand All @@ -45,7 +44,6 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: pnpm

- name: Setup
run: npm i -g @antfu/ni
Expand Down Expand Up @@ -75,7 +73,6 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: pnpm

- name: Setup
run: npm i -g @antfu/ni
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vite-plugin-turbo-console",
"type": "module",
"version": "0.2.8",
"version": "0.3.0-beta.1",
"packageManager": "[email protected]",
"description": "🚀 Enhance the ability of console.log()",
"author": "yuyinws",
Expand Down 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