( options?: RspackRouterPluginOptions, routerPluginContext?: RouterPluginContext, )
| 81 | * ``` |
| 82 | */ |
| 83 | const 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 |
no test coverage detected