Skip to content

Commit 7abf64e

Browse files
committed
fix: remove check for packageplugin
1 parent c610f63 commit 7abf64e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/helpers/functions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const writeGeneratorField = async (functionName: string, functionTitle: string,
3434

3535
if (existsSync(pluginPackagePath)) {
3636
const packagePlugin = await readJSON(pluginPackagePath)
37-
nextPlugin = packagePlugin?.dependencies['@netlify/plugin-nextjs']
37+
nextPlugin = packagePlugin.dependencies['@netlify/plugin-nextjs']
3838
}
3939

4040
const generator = {

0 commit comments

Comments
 (0)