( options?: Partial<Config>, routerPluginContext?: RouterPluginContext, )
| 59 | * ``` |
| 60 | */ |
| 61 | const TanStackRouterCodeSplitterWebpack = ( |
| 62 | options?: Partial<Config>, |
| 63 | routerPluginContext?: RouterPluginContext, |
| 64 | ) => { |
| 65 | const pluginContext = routerPluginContext ?? defaultRouterPluginContext |
| 66 | return createWebpackPlugin((pluginOptions: Partial<Config> | undefined) => |
| 67 | createRouterCodeSplitterPlugin( |
| 68 | withWebpackHmrStyle(pluginOptions), |
| 69 | pluginContext, |
| 70 | ), |
| 71 | )(options) |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * @example |
nothing calls this directly
no test coverage detected