Area restrita - Questionario

This commit is contained in:
2026-06-08 23:50:59 -03:00
parent f2e2400637
commit ef968f10ae
6972 changed files with 23454 additions and 2267883 deletions
+5 -40
View File
@@ -261,7 +261,6 @@ export interface PluginContext extends MinimalPluginContext {
source: string,
importer?: string,
options?: {
importerAttributes?: Record<string, string>;
attributes?: Record<string, string>;
custom?: CustomPluginOptions;
isEntry?: boolean;
@@ -313,19 +312,13 @@ export type ResolveIdHook = (
this: PluginContext,
source: string,
importer: string | undefined,
options: {
attributes: Record<string, string>;
custom?: CustomPluginOptions;
importerAttributes?: Record<string, string> | undefined;
isEntry: boolean;
}
options: { attributes: Record<string, string>; custom?: CustomPluginOptions; isEntry: boolean }
) => ResolveIdResult;
export type ShouldTransformCachedModuleHook = (
this: PluginContext,
options: {
ast: ProgramNode;
attributes: Record<string, string>;
code: string;
id: string;
meta: CustomPluginOptions;
@@ -345,19 +338,7 @@ export type HasModuleSideEffects = (id: string, external: boolean) => boolean;
export type LoadResult = SourceDescription | string | NullValue;
export type LoadHook = (
this: PluginContext,
id: string,
// temporarily marked as optional for better Vite type-compatibility
options?:
| {
// unused, temporarily added for better Vite type-compatibility
ssr?: boolean | undefined;
// temporarily marked as optional for better Vite type-compatibility
attributes?: Record<string, string>;
}
| undefined
) => LoadResult;
export type LoadHook = (this: PluginContext, id: string) => LoadResult;
export interface TransformPluginContext extends PluginContext {
debug: LoggingFunctionWithPosition;
@@ -372,16 +353,7 @@ export type TransformResult = string | NullValue | Partial<SourceDescription>;
export type TransformHook = (
this: TransformPluginContext,
code: string,
id: string,
// temporarily marked as optional for better Vite type-compatibility
options?:
| {
// unused, temporarily added for better Vite type-compatibility
ssr?: boolean | undefined;
// temporarily marked as optional for better Vite type-compatibility
attributes?: Record<string, string>;
}
| undefined
id: string
) => TransformResult;
export type ModuleParsedHook = (this: PluginContext, info: ModuleInfo) => void;
@@ -398,24 +370,18 @@ export type ResolveDynamicImportHook = (
this: PluginContext,
specifier: string | AstNode,
importer: string,
options: { attributes: Record<string, string>; importerAttributes: Record<string, string> }
options: { attributes: Record<string, string> }
) => ResolveIdResult;
export type ResolveImportMetaHook = (
this: PluginContext,
property: string | null,
options: {
attributes: Record<string, string>;
chunkId: string;
format: InternalModuleFormat;
moduleId: string;
}
options: { chunkId: string; format: InternalModuleFormat; moduleId: string }
) => string | NullValue;
export type ResolveFileUrlHook = (
this: PluginContext,
options: {
attributes: Record<string, string>;
chunkId: string;
fileName: string;
format: InternalModuleFormat;
@@ -497,7 +463,6 @@ export interface FunctionPluginHooks {
chunk: PreRenderedChunkWithFileName;
targetChunk: PreRenderedChunkWithFileName | null;
getTargetChunkImports: () => DynamicImportTargetChunk[] | null;
targetModuleAttributes: Record<string, string>;
}
) => { left: string; right: string } | NullValue;
renderError: (this: PluginContext, error?: Error) => void;