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

Function TanStackRouterCodeSplitterWebpack

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

Source from the content-addressed store, hash-verified

59 * ```
60 */
61const TanStackRouterCodeSplitterWebpack = (
62 options?: Partial<Config>,
63 routerPluginContext?: RouterPluginContext,
64) => {
65 const pluginContext = routerPluginContext ?? defaultRouterPluginContext
66 return createWebpackPlugin((pluginOptions: Partial<Config> | undefined) =>
67 createRouterCodeSplitterPlugin(
68 withWebpackHmrStyle(pluginOptions),
69 pluginContext,
70 ),
71 )(options)
72}
73
74/**
75 * @example

Callers

nothing calls this directly

Calls 2

withWebpackHmrStyleFunction · 0.70

Tested by

no test coverage detected