Skip to content

Commit

Permalink
fix: fix skipping function functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
nolde committed Aug 9, 2021
1 parent 3beffea commit 9cfa93e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function bundle (functionName) {
}
return Bb.bind(this).return(data).then(zipIt).then(clean)
})
.catch(err => (err instanceof errors.SkipFunctionError ? {} : Promise.reject(err)))
}

function bootstrap (functionName) {
Expand Down
2 changes: 1 addition & 1 deletion lib/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
},

_validateFunction (data) {
if (get(data, 'functionBrowserifyConfig.disable', this._b.isDisabled)) {
if (get(data, 'functionObject.browserify.disable', this._b.isDisabled)) {
throw new errors.SkipFunctionError(data.functionName, 'bundling disabled')
}
const node = this._b.runtimeIsNode ? 'nodejs' : ''
Expand Down

0 comments on commit 9cfa93e

Please sign in to comment.