@tanstack/vue-start
Version:
Modern and scalable routing for Vue applications
24 lines (21 loc) • 730 B
text/typescript
import {
RSBUILD_ENVIRONMENT_NAMES,
tanStackStartRsbuild,
} from '@tanstack/start-plugin-core/rsbuild'
import { vueStartDefaultEntryPaths } from './shared'
import type {
TanStackStartRsbuildInputConfig,
TanStackStartRsbuildPluginCoreOptions,
} from '@tanstack/start-plugin-core/rsbuild'
import type { RsbuildPlugin } from '@rsbuild/core'
export function tanstackStart(
options?: TanStackStartRsbuildInputConfig,
): RsbuildPlugin {
const corePluginOpts: TanStackStartRsbuildPluginCoreOptions = {
framework: 'vue',
defaultEntryPaths: vueStartDefaultEntryPaths,
providerEnvironmentName: RSBUILD_ENVIRONMENT_NAMES.server,
ssrIsProvider: true,
}
return tanStackStartRsbuild(corePluginOpts, options)
}