( options?: RouterPluginOptions, routerPluginContext?: RouterPluginContext, )
| 41 | * ``` |
| 42 | */ |
| 43 | const tanStackRouterCodeSplitter = ( |
| 44 | options?: RouterPluginOptions, |
| 45 | routerPluginContext?: RouterPluginContext, |
| 46 | ) => { |
| 47 | const pluginContext = routerPluginContext ?? defaultRouterPluginContext |
| 48 | return createVitePlugin((pluginOptions: RouterPluginOptions) => |
| 49 | createRouterCodeSplitterPlugin(pluginOptions, pluginContext), |
| 50 | )(options) |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * @example |
no test coverage detected