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

Function TanStackRouterCodeSplitterWebpack

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected