Skip to content

Commit 13d1d12

Browse files
Rename the functions build helpers to make it more clear what their role is.
1 parent 551fd9a commit 13d1d12

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/wrangler/src/pages/buildFunctions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { join, resolve } from "node:path";
44
import { FatalError } from "../errors";
55
import { toUrlPath } from "../paths";
66
import { FunctionsNoRoutesError } from "./errors";
7-
import { buildPlugin } from "./functions/buildPlugin";
8-
import { buildWorker } from "./functions/buildWorker";
7+
import { buildPluginFromFunctions } from "./functions/buildPlugin";
8+
import { buildWorkerFromFunctions } from "./functions/buildWorker";
99
import { generateConfigFromFileTree } from "./functions/filepath-routing";
1010
import { writeRoutesModule } from "./functions/routes";
1111
import { convertRoutesToRoutesJSONSpec } from "./functions/routes-transformation";
@@ -103,7 +103,7 @@ export async function buildFunctions({
103103
);
104104
}
105105

106-
bundle = await buildPlugin({
106+
bundle = await buildPluginFromFunctions({
107107
routesModule,
108108
outdir,
109109
minify,
@@ -114,7 +114,7 @@ export async function buildFunctions({
114114
local,
115115
});
116116
} else {
117-
bundle = await buildWorker({
117+
bundle = await buildWorkerFromFunctions({
118118
routesModule,
119119
outfile,
120120
outdir,

packages/wrangler/src/pages/functions/buildPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type Options = Omit<
1010
"outfile" | "fallbackService" | "buildOutputDirectory" | "nodejsCompat"
1111
> & { outdir: string };
1212

13-
export function buildPlugin({
13+
export function buildPluginFromFunctions({
1414
routesModule,
1515
outdir,
1616
minify = false,

packages/wrangler/src/pages/functions/buildWorker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export type Options = {
2828
local: boolean;
2929
};
3030

31-
export function buildWorker({
31+
export function buildWorkerFromFunctions({
3232
routesModule,
3333
outfile = join(tmpdir(), `./functionsWorker-${Math.random()}.js`),
3434
outdir,

0 commit comments

Comments
 (0)