Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/edge-bundler/node/formats/javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const getLocalEntryPoint = (
}
`
})
const bootCall = `boot(functions, metadata);`
const bootCall = `boot(() => functions, metadata);`

return [bootImport, declaration, ...imports, bootCall].join('\n\n')
}
Expand Down
3 changes: 2 additions & 1 deletion packages/edge-bundler/node/stage_2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ test('`getLocalEntryPoint` returns a valid stage 2 file for local development',
// This is a fake bootstrap that we'll create just for the purpose of logging
// the functions and the metadata that are sent to the `boot` function.
const printer = `
export const boot = async (functions, metadata) => {
export const boot = async (getFunctions, metadata) => {
const responses = {}
const functions = await getFunctions()

for (const name in functions) {
responses[name] = await functions[name]()
Expand Down
Loading