From bed92b5beddae33e7b445ed9d3a3f8989b727900 Mon Sep 17 00:00:00 2001 From: bluwy Date: Tue, 12 Jul 2022 00:53:55 +0800 Subject: [PATCH] chore: mark experimental --- docs/guide/api-javascript.md | 5 ----- packages/vite/src/node/preview.ts | 4 +++- packages/vite/src/node/server/index.ts | 2 ++ 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/guide/api-javascript.md b/docs/guide/api-javascript.md index bebe594a8ffd5b..6167bd7dfe7793 100644 --- a/docs/guide/api-javascript.md +++ b/docs/guide/api-javascript.md @@ -84,11 +84,6 @@ interface ViteDevServer { * and hmr state. */ moduleGraph: ModuleGraph - /** - * The resolved urls Vite prints on the CLI. null in middleware mode or - * before `server.listen` is called. - */ - resolvedUrls: ResolvedServerUrls | null /** * Programmatically resolve, load and transform a URL and get the result * without going through the http request pipeline. diff --git a/packages/vite/src/node/preview.ts b/packages/vite/src/node/preview.ts index ad746be0994786..7b2cc4bb1729b4 100644 --- a/packages/vite/src/node/preview.ts +++ b/packages/vite/src/node/preview.ts @@ -48,7 +48,9 @@ export interface PreviewServer { */ httpServer: http.Server /** - * The resolved urls Vite prints on the CLI + * The resolved urls Vite prints on the + * + * @experimental */ resolvedUrls: ResolvedServerUrls /** diff --git a/packages/vite/src/node/server/index.ts b/packages/vite/src/node/server/index.ts index 13875066bf8db7..80c1ae308db6ca 100644 --- a/packages/vite/src/node/server/index.ts +++ b/packages/vite/src/node/server/index.ts @@ -188,6 +188,8 @@ export interface ViteDevServer { /** * The resolved urls Vite prints on the CLI. null in middleware mode or * before `server.listen` is called. + * + * @experimental */ resolvedUrls: ResolvedServerUrls | null /**