( options?: Partial<Config>, routerPluginContext?: RouterPluginContext, )
| 20 | * ``` |
| 21 | */ |
| 22 | const TanStackRouterGeneratorWebpack = ( |
| 23 | options?: Partial<Config>, |
| 24 | routerPluginContext?: RouterPluginContext, |
| 25 | ) => { |
| 26 | const pluginContext = routerPluginContext ?? defaultRouterPluginContext |
| 27 | return createWebpackPlugin((pluginOptions: Partial<Config> | undefined) => |
| 28 | createRouterGeneratorPlugin(pluginOptions, pluginContext), |
| 29 | )(options) |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Route HMR in development goes through `import.meta.webpackHot`. |
nothing calls this directly
no test coverage detected