Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Mar 12, 2024
1 parent 95c37c2 commit 56aca98
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/module-runner/esmEvaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import {
ssrImportMetaKey,
ssrModuleExportsKey,
} from './constants'
import type { ModuleEvaluator, ModuleRunnerContect } from './types'
import type { ModuleEvaluator, ModuleRunnerContext } from './types'

export class ESModuleEvaluator implements ModuleEvaluator {
async runInlinedModule(
context: ModuleRunnerContect,
context: ModuleRunnerContext,
code: string,
): Promise<any> {
// use AsyncFunction instead of vm module to support broader array of environments out of the box
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/module-runner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export { ESModuleEvaluator } from './esmEvaluator'
export type { HMRLogger, HMRConnection } from '../shared/hmr'
export type {
ModuleEvaluator,
ModuleRunnerContect,
ModuleRunnerContext,
ModuleCache,
FetchResult,
FetchFunction,
Expand Down
4 changes: 2 additions & 2 deletions packages/vite/src/module-runner/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import type {
FetchResult,
ModuleCache,
ModuleEvaluator,
ModuleRunnerContect,
ModuleRunnerContext,
ModuleRunnerImportMeta,
ModuleRunnerOptions,
ResolvedResult,
Expand Down Expand Up @@ -373,7 +373,7 @@ export class ModuleRunner {
})
}

const context: ModuleRunnerContect = {
const context: ModuleRunnerContext = {
[ssrImportKey]: request,
[ssrDynamicImportKey]: dynamicRequest,
[ssrModuleExportsKey]: exports,
Expand Down
4 changes: 2 additions & 2 deletions packages/vite/src/module-runner/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface ModuleRunnerImportMeta extends ImportMeta {
[key: string]: any
}

export interface ModuleRunnerContect {
export interface ModuleRunnerContext {
[ssrModuleExportsKey]: Record<string, any>
[ssrImportKey]: (id: string, metadata?: DefineImportMetadata) => Promise<any>
[ssrDynamicImportKey]: (
Expand All @@ -52,7 +52,7 @@ export interface ModuleEvaluator {
* @param id ID that was used to fetch the module
*/
runInlinedModule(
context: ModuleRunnerContect,
context: ModuleRunnerContext,
code: string,
id: string,
): Promise<any>
Expand Down

0 comments on commit 56aca98

Please sign in to comment.