Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: stabilize experimental api #7707

Merged
merged 3 commits into from
May 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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