Skip to content

Commit 70a54ca

Browse files
committed
feat: add schema extension for function property
1 parent 9cfa93e commit 70a54ca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ class BrowserifierPlugin {
3434
// handles `sls invoke local`
3535
'before:invoke:local:invoke': this.prepareAndBundleFunction.bind(this, true)
3636
}
37+
this._s.configSchemaHandler.defineFunctionProperties('browserify', {
38+
type: 'object',
39+
minProperties: 1,
40+
additionalProperties: true,
41+
properties: {
42+
disable: { type: 'boolean' }
43+
}
44+
})
3745
}
3846

3947
initialise () {

0 commit comments

Comments
 (0)