We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bda997b + 1a2da6a commit 917baccCopy full SHA for 917bacc
src/index.ts
@@ -77,7 +77,8 @@ export class TypeScriptPlugin {
77
exclude: [],
78
include: [],
79
}
80
- fn.package.exclude = _.uniq([...fn.package.exclude, 'node_modules/serverless-plugin-typescript'])
+ // Add plugin to excluded packages or an empty array if exclude is undefined
81
+ fn.package.exclude = _.uniq([...fn.package.exclude || [], 'node_modules/serverless-plugin-typescript'])
82
83
84
0 commit comments