docs: prefer using externalVue in nuxt 3 (#10978)

This commit is contained in:
neverland 2022-08-27 15:07:43 +08:00 committed by GitHub
parent 95542bf06e
commit 84b05f0668
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -223,8 +223,8 @@ When using Vant in Nuxt 3, you should add `/vant/` to the `build.transpile`:
import { defineNuxtConfig } from 'nuxt'; import { defineNuxtConfig } from 'nuxt';
export default defineNuxtConfig({ export default defineNuxtConfig({
build: { experimental: {
transpile: [/vant/], externalVue: true,
}, },
}); });
``` ```

View File

@ -228,8 +228,8 @@ import 'vant/es/image-preview/style';
import { defineNuxtConfig } from 'nuxt'; import { defineNuxtConfig } from 'nuxt';
export default defineNuxtConfig({ export default defineNuxtConfig({
build: { experimental: {
transpile: [/vant/], externalVue: true,
}, },
}); });
``` ```