diff --git a/packages/vant/docs/markdown/quickstart.en-US.md b/packages/vant/docs/markdown/quickstart.en-US.md index bec8c6b2f..0f93a962b 100644 --- a/packages/vant/docs/markdown/quickstart.en-US.md +++ b/packages/vant/docs/markdown/quickstart.en-US.md @@ -223,8 +223,8 @@ When using Vant in Nuxt 3, you should add `/vant/` to the `build.transpile`: import { defineNuxtConfig } from 'nuxt'; export default defineNuxtConfig({ - build: { - transpile: [/vant/], + experimental: { + externalVue: true, }, }); ``` diff --git a/packages/vant/docs/markdown/quickstart.zh-CN.md b/packages/vant/docs/markdown/quickstart.zh-CN.md index b83fef29b..14a83b503 100644 --- a/packages/vant/docs/markdown/quickstart.zh-CN.md +++ b/packages/vant/docs/markdown/quickstart.zh-CN.md @@ -228,8 +228,8 @@ import 'vant/es/image-preview/style'; import { defineNuxtConfig } from 'nuxt'; export default defineNuxtConfig({ - build: { - transpile: [/vant/], + experimental: { + externalVue: true, }, }); ```