MCPcopy
hub / github.com/nuxt/nuxt / WebpackConfigContext

Interface WebpackConfigContext

packages/webpack/src/utils/config.ts:6–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4import { toArray } from './index.ts'
5
6export interface WebpackConfigContext {
7 nuxt: Nuxt
8 options: NuxtOptions
9 userConfig: Omit<NuxtOptions['webpack'], '$client' | '$server'>
10 config: Configuration
11 name: string
12 isDev: boolean
13 isServer: boolean
14 isClient: boolean
15 alias: { [index: string]: string | false | string[] }
16 transpile: RegExp[]
17}
18
19type WebpackConfigPreset = (ctx: WebpackConfigContext, options?: object) => void | Promise<void>
20type WebpackConfigPresetItem = WebpackConfigPreset | [WebpackConfigPreset, any]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…