Skip to content

Commit 9cfa93e

Browse files
committed
fix: fix skipping function functionality
1 parent 3beffea commit 9cfa93e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/bundle.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ function bundle (functionName) {
3434
}
3535
return Bb.bind(this).return(data).then(zipIt).then(clean)
3636
})
37+
.catch(err => (err instanceof errors.SkipFunctionError ? {} : Promise.reject(err)))
3738
}
3839

3940
function bootstrap (functionName) {

lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
},
1818

1919
_validateFunction (data) {
20-
if (get(data, 'functionBrowserifyConfig.disable', this._b.isDisabled)) {
20+
if (get(data, 'functionObject.browserify.disable', this._b.isDisabled)) {
2121
throw new errors.SkipFunctionError(data.functionName, 'bundling disabled')
2222
}
2323
const node = this._b.runtimeIsNode ? 'nodejs' : ''

0 commit comments

Comments
 (0)