Skip to content

Commit

Permalink
chore: stabilize experimental api (#7707)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed May 12, 2022
1 parent a8b22b6 commit b902932
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion packages/vite/src/node/config.ts
Expand Up @@ -149,7 +149,6 @@ export interface UserConfig {
optimizeDeps?: DepOptimizationOptions
/**
* SSR specific options
* @alpha
*/
ssr?: SSROptions
/**
Expand Down
3 changes: 1 addition & 2 deletions packages/vite/src/node/preview.ts
Expand Up @@ -61,10 +61,9 @@ export type PreviewServerHook = (server: {

/**
* Starts the Vite server in preview mode, to simulate a production deployment
* @experimental
*/
export async function preview(
inlineConfig: InlineConfig
inlineConfig: InlineConfig = {}
): Promise<PreviewServer> {
const config = await resolveConfig(inlineConfig, 'serve', 'production')

Expand Down
5 changes: 0 additions & 5 deletions packages/vite/src/node/server/index.ts
Expand Up @@ -95,8 +95,6 @@ export interface ServerOptions extends CommonServerOptions {
origin?: string
/**
* Pre-transform known direct imports
*
* @experimental this option is experimental and might be changed in the future
* @default true
*/
preTransformRequests?: boolean
Expand Down Expand Up @@ -131,8 +129,6 @@ export interface FileSystemServeOptions {
* Glob patterns are supported.
*
* @default ['.env', '.env.*', '*.crt', '*.pem']
*
* @experimental
*/
deny?: string[]
}
Expand Down Expand Up @@ -196,7 +192,6 @@ export interface ViteDevServer {
): Promise<string>
/**
* Transform module code into SSR format.
* @experimental
*/
ssrTransform(
code: string,
Expand Down

0 comments on commit b902932

Please sign in to comment.