Skip to content

Commit

Permalink
chore: mark new exposed utils as experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Oct 31, 2024
1 parent b16e5d2 commit a105900
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vite/src/node/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export type Environment =
* Creates a function that hides the complexities of a WeakMap with an initial value
* to implement object metadata. Used by plugins to implement cross hooks per
* environment metadata
*
* @experimental
*/
export function perEnvironmentState<State>(
initial: (environment: Environment) => State,
Expand Down
3 changes: 3 additions & 0 deletions packages/vite/src/node/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ export async function resolveEnvironmentPlugins(
return environmentPlugins
}

/**
* @experimental
*/
export function perEnvironmentPlugin(
name: string,
applyToEnvironment: (
Expand Down

0 comments on commit a105900

Please sign in to comment.