( options?: Partial<Config>, routerPluginContext?: RouterPluginContext, )
| 40 | * ``` |
| 41 | */ |
| 42 | const TanStackRouterGeneratorWebpack = ( |
| 43 | options?: Partial<Config>, |
| 44 | routerPluginContext?: RouterPluginContext, |
| 45 | ) => { |
| 46 | const pluginContext = routerPluginContext ?? defaultRouterPluginContext |
| 47 | return createWebpackPlugin((pluginOptions: Partial<Config> | undefined) => |
| 48 | createRouterGeneratorPlugin(pluginOptions, pluginContext), |
| 49 | )(options) |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * @example |
nothing calls this directly
no test coverage detected