Skip to content
Source
Sign inSign up
TanStack/router

fix: generic env handling #5811

Mergedschiller-manuel(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/5811/headmerged by schiller-manuel(GitHub profile, opens in a new tab)

Showing 4 changed files with 68 additions and 59 deletions (loading 1).

x
0 of 4 viewed, 4 left
1 addition and 1 deletionpackages/start-plugin-core/src/create-server-fn-plugin/handleCreateServerFn.tsModified
View file
@@ -146,7 +146,7 @@
- [t.directive(t.directiveLiteral('use server'))],
+ [t.directive(t.directiveLiteral(opts.directive))],
45 additions and 55 deletionspackages/start-plugin-core/src/create-server-fn-plugin/plugin.tsModified
View file
@@ -1,8 +1,7 @@
-import { TRANSFORM_ID_REGEX, VITE_ENVIRONMENT_NAMES } from '../constants'
+import { TRANSFORM_ID_REGEX } from '../constants'
import { ServerFnCompiler } from './compiler'
import type { LookupConfig, LookupKind } from './compiler'
import type { CompileStartFrameworkOptions } from '../start-compiler-plugin/compilers'
-import type { ViteEnvironmentNames } from '../constants'
import type { PluginOption } from 'vite'
​
function cleanId(id: string): string {
@@ -39,44 +38,29 @@