Skip to content

Commit 0c39591

Browse files
committed
fix(directives): remove ts directives
1 parent 5329962 commit 0c39591

2 files changed

Lines changed: 2 additions & 42 deletions

File tree

packages/start/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"@babel/traverse": "^7.28.3",
4242
"@babel/types": "^7.28.5",
4343
"@solidjs/meta": "^0.29.4",
44-
"@tanstack/server-functions-plugin": "1.134.5",
4544
"@types/babel__traverse": "^7.28.0",
4645
"@types/micromatch": "^4.0.9",
4746
"cookie-es": "^2.0.0",

packages/start/src/config/index.ts

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
import { TanStackServerFnPlugin } from "@tanstack/server-functions-plugin";
21
import { defu } from "defu";
32
import { globSync } from "node:fs";
43
import { extname, isAbsolute, join } from "node:path";
5-
import { fileURLToPath } from "node:url";
6-
import { normalizePath, type PluginOption } from "vite";
4+
import { type PluginOption } from "vite";
75
import solid, { type Options as SolidOptions } from "vite-plugin-solid";
8-
6+
import { serverFunctionsPlugin } from "../directives/index.ts";
97
import { DEFAULT_EXTENSIONS, VIRTUAL_MODULES, VITE_ENVIRONMENTS } from "./constants.ts";
108
import { devServer } from "./dev-server.ts";
119
import { SolidStartClientFileRouter, SolidStartServerFileRouter } from "./fs-router.ts";
@@ -14,7 +12,6 @@ import type { BaseFileSystemRouter } from "./fs-routes/router.ts";
1412
import lazy from "./lazy.ts";
1513
import { manifest } from "./manifest.ts";
1614
import { parseIdQuery } from "./utils.ts";
17-
import { serverFunctionsPlugin } from "../directives/index.ts";
1815

1916
export interface SolidStartOptions {
2017
solid?: Partial<SolidOptions>;
@@ -167,42 +164,6 @@ export function solidStart(options?: SolidStartOptions): Array<PluginOption> {
167164
serverFunctionsPlugin({
168165
manifest: VIRTUAL_MODULES.serverFnManifest,
169166
}),
170-
// // Must be placed after fsRoutes, as treeShake will remove the
171-
// // server fn exports added in by this plugin
172-
// TanStackServerFnPlugin({
173-
// // This is the ID that will be available to look up and import
174-
// // our server function manifest and resolve its module
175-
// manifestVirtualImportId: VIRTUAL_MODULES.serverFnManifest,
176-
// directive: "use server",
177-
// callers: [
178-
// {
179-
// envConsumer: "client",
180-
// envName: VITE_ENVIRONMENTS.client,
181-
// getRuntimeCode: () =>
182-
// `import { createServerReference } from "${normalizePath(
183-
// fileURLToPath(new URL("../server/server-runtime", import.meta.url))
184-
// )}"`,
185-
// replacer: opts => `createServerReference('${opts.functionId}')`,
186-
// },
187-
// {
188-
// envConsumer: "server",
189-
// envName: VITE_ENVIRONMENTS.server,
190-
// getRuntimeCode: () =>
191-
// `import { createServerReference } from '${normalizePath(
192-
// fileURLToPath(new URL("../server/server-fns-runtime", import.meta.url))
193-
// )}'`,
194-
// replacer: opts => `createServerReference(${opts.fn}, '${opts.functionId}')`,
195-
// },
196-
// ],
197-
// provider: {
198-
// envName: VITE_ENVIRONMENTS.server,
199-
// getRuntimeCode: () =>
200-
// `import { createServerReference } from '${normalizePath(
201-
// fileURLToPath(new URL("../server/server-fns-runtime", import.meta.url))
202-
// )}'`,
203-
// replacer: opts => `createServerReference(${opts.fn}, '${opts.functionId}')`,
204-
// },
205-
// }),
206167
{
207168
name: "solid-start:virtual-modules",
208169
async resolveId(id) {

0 commit comments

Comments
 (0)