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

Function TanStackRouterGeneratorWebpack

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

Source from the content-addressed store, hash-verified

20 * ```
21 */
22const TanStackRouterGeneratorWebpack = (
23 options?: Partial<Config>,
24 routerPluginContext?: RouterPluginContext,
25) => {
26 const pluginContext = routerPluginContext ?? defaultRouterPluginContext
27 return createWebpackPlugin((pluginOptions: Partial<Config> | undefined) =>
28 createRouterGeneratorPlugin(pluginOptions, pluginContext),
29 )(options)
30}
31
32/**
33 * Route HMR in development goes through `import.meta.webpackHot`.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected