Skip to content

Commit aaac07a

Browse files
committed
chore: null check for plugin instantiation
1 parent 5dd37ba commit aaac07a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ const plugin: NetlifyPlugin & { onPreDev?: OnPreBuild; onDev?: OnPreBuild } = {
216216
},
217217
}
218218
// The types haven't been updated yet
219-
const nextPlugin = (_inputs, { events }: { events: Set<string> }): NetlifyPlugin & { onPreDev?: OnPreBuild } => {
220-
if (!events.has('onPreDev')) {
219+
const nextPlugin = (_inputs, meta: { events: Set<string> }): NetlifyPlugin & { onPreDev?: OnPreBuild } => {
220+
if (!meta?.events?.has('onPreDev')) {
221221
return {
222222
...plugin,
223223
onEnd: ({ utils }) => {

0 commit comments

Comments
 (0)