MCPcopy
hub / github.com/vuejs/core / createAppContext

Function createAppContext

packages/runtime-core/src/apiCreateApp.ts:224–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

222> = FunctionPlugin<P> | ObjectPlugin<P>
223
224export function createAppContext(): AppContext {
225 return {
226 app: null as any,
227 config: {
228 isNativeTag: NO,
229 performance: false,
230 globalProperties: {},
231 optionMergeStrategies: {},
232 errorHandler: undefined,
233 warnHandler: undefined,
234 compilerOptions: {},
235 },
236 mixins: [],
237 components: {},
238 directives: {},
239 provides: Object.create(null),
240 optionsCache: new WeakMap(),
241 propsCache: new WeakMap(),
242 emitsCache: new WeakMap(),
243 }
244}
245
246export type CreateAppFunction<HostElement> = (
247 rootComponent: Component,

Callers 3

component.tsFile · 0.90
convertLegacyVModelPropsFunction · 0.90
createAppAPIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected