Skip to content

Commit

Permalink
refactor: switch nuxt module of vue macros (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz authored Nov 23, 2022
1 parent 47914d5 commit c42fe49
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 47 deletions.
9 changes: 2 additions & 7 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import VueMacros from 'unplugin-vue-macros/vite'

export default defineNuxtConfig({
ssr: false,
modules: [
'@vueuse/nuxt',
'@unocss/nuxt',
'@pinia/nuxt',
'@vue-macros/nuxt',
],
experimental: {
reactivityTransform: true,
Expand All @@ -26,11 +25,7 @@ export default defineNuxtConfig({
build: {
target: 'esnext',
},
plugins: [
VueMacros({
defineModel: true,
}),
],

},
postcss: {
plugins: {
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@types/fs-extra": "^9.0.13",
"@types/sanitize-html": "^2.6.2",
"@unocss/nuxt": "^0.46.5",
"@vue-macros/volar": "^0.5.3",
"@vue-macros/nuxt": "^0.0.2",
"@vueuse/nuxt": "^9.5.0",
"blurhash": "^2.0.4",
"eslint": "^8.27.0",
Expand All @@ -35,7 +35,6 @@
"rollup-plugin-node-polyfills": "^0.2.1",
"sanitize-html": "^2.7.3",
"typescript": "^4.9.3",
"ufo": "^1.0.0",
"unplugin-vue-macros": "^0.16.4"
"ufo": "^1.0.0"
}
}
88 changes: 59 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion shim.d.ts

This file was deleted.

8 changes: 1 addition & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
{
"extends": "./.nuxt/tsconfig.json",
"vueCompilerOptions": {
"plugins": [
"@vue-macros/volar/define-model",
"@vue-macros/volar/short-vmodel"
]
}
"extends": "./.nuxt/tsconfig.json"
}

0 comments on commit c42fe49

Please sign in to comment.