Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit c52503f

Browse files
committed
docs: update nuxt example, close #36
1 parent c3effd6 commit c52503f

File tree

3 files changed

+35
-21
lines changed

3 files changed

+35
-21
lines changed

examples/nuxt/nuxt.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ export default {
22
buildModules: [
33
// we disable the type check and left it to `vue-tsc`
44
['@nuxt/typescript-build', { typeCheck: false }],
5-
// @vue/composition-api support
5+
// @vue/composition-api support,
6+
// which ships the `<script setup>` transformer out-of-box
67
'@nuxtjs/composition-api/module',
7-
// install the transformer
8-
'unplugin-vue2-script-setup/nuxt',
98
],
109
}

examples/nuxt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"devDependencies": {
1515
"@nuxt/types": "^2.15.8",
1616
"@nuxt/typescript-build": "^2.1.0",
17-
"@nuxtjs/composition-api": "^0.27.0",
17+
"@nuxtjs/composition-api": "^0.28.0",
1818
"@vue/runtime-dom": "^3.2.6",
1919
"unplugin-vue2-script-setup": "workspace:*",
2020
"vue-tsc": "^0.3.0"

pnpm-lock.yaml

Lines changed: 32 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)