Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

rsbuild.ts

23 lines730 Bytes

1import {
2 RSBUILD_ENVIRONMENT_NAMES,
3 tanStackStartRsbuild,
4} from '@tanstack/start-plugin-core/rsbuild'
5import { vueStartDefaultEntryPaths } from './shared'
6import type {
7 TanStackStartRsbuildInputConfig,
8 TanStackStartRsbuildPluginCoreOptions,
9} from '@tanstack/start-plugin-core/rsbuild'
10import type { RsbuildPlugin } from '@rsbuild/core'
11​
12export function tanstackStart(
13 options?: TanStackStartRsbuildInputConfig,
14): RsbuildPlugin {
15 const corePluginOpts: TanStackStartRsbuildPluginCoreOptions = {
16 framework: 'vue',
17 defaultEntryPaths: vueStartDefaultEntryPaths,
18 providerEnvironmentName: RSBUILD_ENVIRONMENT_NAMES.server,
19 ssrIsProvider: true,
20 }
21​
22 return tanStackStartRsbuild(corePluginOpts, options)