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

Function TanStackRouterCodeSplitterRspack

packages/router-plugin/src/rspack.ts:57–69  ·  view source on GitHub ↗
(
  options?: RspackRouterPluginOptions,
  routerPluginContext?: RouterPluginContext,
)

Source from the content-addressed store, hash-verified

55 * ```
56 */
57const TanStackRouterCodeSplitterRspack = (
58 options?: RspackRouterPluginOptions,
59 routerPluginContext?: RouterPluginContext,
60) => {
61 const pluginContext = routerPluginContext ?? defaultRouterPluginContext
62 return createRspackPlugin((pluginOptions) =>
63 createRouterCodeSplitterPlugin(
64 pluginOptions as Partial<Config | (() => Config)> | undefined,
65 pluginContext,
66 'webpack',
67 ),
68 )(options)
69}
70
71/**
72 * @example

Callers 1

registerRouterPluginsFunction · 0.90

Calls 1

Tested by

no test coverage detected