Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typo #336

Merged
merged 2 commits into from
Mar 13, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions node/formats/javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { FormatFunction } from '../server/server.js'
const defaultFormatExportTypeError: FormatFunction = (name) =>
`The Edge Function "${name}" has failed to load. Does it have a function as the default export?`

const defaultFormatImpoortError: FormatFunction = (name) => `There was an error with Edge Function "${name}".`
const defaultFormatImportError: FormatFunction = (name) => `There was an error with Edge Function "${name}".`

interface GenerateStage2Options {
bootstrapURL: string
Expand Down Expand Up @@ -54,7 +54,7 @@ const getLocalEntryPoint = (
{
bootstrapURL,
formatExportTypeError = defaultFormatExportTypeError,
formatImportError = defaultFormatImpoortError,
formatImportError = defaultFormatImportError,
}: GetLocalEntryPointOptions,
) => {
const bootImport = `import { boot } from "${bootstrapURL}";`
Expand Down