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