Skip to content

Commit 623da53

Browse files
committed
stop using the now removed npmSpecifiersWithExtraneousFiles value
1 parent 3c42fe2 commit 623da53

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

src/lib/edge-functions/registry.ts

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export class EdgeFunctionsRegistry {
179179
const warnings: Record<string, string[]> = {}
180180

181181
try {
182-
const { functionsConfig, graph, npmSpecifiersWithExtraneousFiles, success } = await this.runBuild()
182+
const { functionsConfig, graph, success } = await this.runBuild()
183183

184184
if (!success) {
185185
throw new Error('Build error')
@@ -222,14 +222,6 @@ export class EdgeFunctionsRegistry {
222222

223223
this.processGraph(graph)
224224

225-
if (npmSpecifiersWithExtraneousFiles.length !== 0) {
226-
const modules = npmSpecifiersWithExtraneousFiles.map((name) => chalk.yellow(name)).join(', ')
227-
228-
log(
229-
`${NETLIFYDEVWARN} The following npm modules, which are directly or indirectly imported by an edge function, may not be supported: ${modules}. For more information, visit https://ntl.fyi/edge-functions-npm.`,
230-
)
231-
}
232-
233225
return { warnings }
234226
} catch (error) {
235227
if (error instanceof Error) {
@@ -530,16 +522,12 @@ export class EdgeFunctionsRegistry {
530522
}
531523
}
532524

533-
const { functionsConfig, graph, npmSpecifiersWithExtraneousFiles, success } = await this.runIsolate(
534-
this.functions,
535-
this.env,
536-
{
537-
getFunctionsConfig: true,
538-
importMapPaths: importMapPaths.filter(nonNullable),
539-
},
540-
)
525+
const { functionsConfig, graph, success } = await this.runIsolate(this.functions, this.env, {
526+
getFunctionsConfig: true,
527+
importMapPaths: importMapPaths.filter(nonNullable),
528+
})
541529

542-
return { functionsConfig, graph, npmSpecifiersWithExtraneousFiles, success }
530+
return { functionsConfig, graph, success }
543531
}
544532

545533
private get internalDirectory() {

0 commit comments

Comments
 (0)