Open History to see the last commit
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)
23}