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

Function TanStackRouterCodeSplitterRspack

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

Source from the content-addressed store, hash-verified

81 * ```
82 */
83const TanStackRouterCodeSplitterRspack = (
84 options?: RspackRouterPluginOptions,
85 routerPluginContext?: RouterPluginContext,
86) => {
87 const pluginContext = routerPluginContext ?? defaultRouterPluginContext
88 return createRspackPlugin((pluginOptions) =>
89 createRouterCodeSplitterPlugin(
90 withWebpackHmrStyle(
91 pluginOptions as RspackRouterPluginOptions | undefined,
92 ) as Partial<Config | (() => Config)>,
93 pluginContext,
94 ),
95 )(options)
96}
97
98/**
99 * @example

Callers 1

registerRouterPluginsFunction · 0.90

Calls 2

withWebpackHmrStyleFunction · 0.70

Tested by

no test coverage detected