MCPcopy Create free account
hub / github.com/TanStack/router / TanStackRouterGeneratorWebpack

Function TanStackRouterGeneratorWebpack

packages/router-plugin/src/webpack.ts:42–50  ·  view source on GitHub ↗
(
  options?: Partial<Config>,
  routerPluginContext?: RouterPluginContext,
)

Source from the content-addressed store, hash-verified

40 * ```
41 */
42const TanStackRouterGeneratorWebpack = (
43 options?: Partial<Config>,
44 routerPluginContext?: RouterPluginContext,
45) => {
46 const pluginContext = routerPluginContext ?? defaultRouterPluginContext
47 return createWebpackPlugin((pluginOptions: Partial<Config> | undefined) =>
48 createRouterGeneratorPlugin(pluginOptions, pluginContext),
49 )(options)
50}
51
52/**
53 * @example

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected