Skip to content

Commit fb31f9b

Browse files
remove comments
1 parent 2611ed0 commit fb31f9b

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

packages/start/src/config/index.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,6 @@ export function solidStart(options?: SolidStartOptions): Array<PluginOption> {
179179
// our server function manifest and resolve its module
180180
manifestVirtualImportId: VIRTUAL_MODULES.serverFnManifest,
181181
directive: "use server",
182-
// generateFunctionId: startPluginOpts?.serverFns?.generateFunctionId,
183-
// TODO: Is this correct???
184-
// generateFunctionId: (opts) => {
185-
// const id = `${opts.filename}/${opts.functionName}`
186-
// // if (FUNCTIONS_WITH_CONSTANT_ID.includes(id)) return 'constant_id'
187-
// // else return undefined
188-
// return id;
189-
// },
190182
callers: [
191183
{
192184
envConsumer: 'client',
@@ -208,17 +200,9 @@ export function solidStart(options?: SolidStartOptions): Array<PluginOption> {
208200
)}'`,
209201
envName: VITE_ENVIRONMENTS.server,
210202
replacer: (opts) =>
211-
`createServerReference(${opts.fn}, '${opts.functionId}', '${opts.extractedFilename}')`,
212-
//getServerFnById: corePluginOpts.serverFn?.ssr?.getServerFnById,
213-
// getServerFnById: (opts) => {
214-
// const id = `${opts.filename}/${opts.functionName}`
215-
// // if (FUNCTIONS_WITH_CONSTANT_ID.includes(id)) return 'constant_id'
216-
// // else return undefined
217-
// return id
218-
// },
203+
`createServerReference(${opts.fn}, '${opts.functionId}', '${opts.extractedFilename}')`
219204
},
220205
],
221-
// TODO: Is this correct?
222206
provider: {
223207
getRuntimeCode: () =>
224208
`import { createServerReference } from '${normalize(

0 commit comments

Comments
 (0)