From a89ea5202e9492c2b60598b6b8095ecf31dafbd8 Mon Sep 17 00:00:00 2001 From: dengqing Date: Wed, 6 Apr 2022 13:13:38 +0800 Subject: [PATCH] docs: update plugin example (#7624) --- docs/guide/api-plugin.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/guide/api-plugin.md b/docs/guide/api-plugin.md index 4a5b1c07c7893e..8f208006fcab30 100644 --- a/docs/guide/api-plugin.md +++ b/docs/guide/api-plugin.md @@ -186,8 +186,10 @@ Vite plugins can also provide hooks that serve Vite-specific purposes. These hoo const partialConfigPlugin = () => ({ name: 'return-partial', config: () => ({ - alias: { - foo: 'bar' + resolve: { + alias: { + foo: 'bar' + } } }) })