From 84b05f06682e08b574847dcafc9d75e2c0ed6ba5 Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 27 Aug 2022 15:07:43 +0800 Subject: [PATCH] docs: prefer using externalVue in nuxt 3 (#10978) --- packages/vant/docs/markdown/quickstart.en-US.md | 4 ++-- packages/vant/docs/markdown/quickstart.zh-CN.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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, }, }); ```