You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
directory | `String/Array` | directories to be loaded
234
-
target | `Object` | attach the target object from loaded files
235
-
match | `String/Array` | match the files when load, default to `**/*.js`(if process.env.EGG_TYPESCRIPT was true, default to `[ '**/*.(js|ts)', '!**/*.d.ts' ]`)
236
-
ignore | `String/Array` | ignore the files when load
237
-
initializer | `Function` | custom file exports, receive two parameters, first is the inject object(if not js file, will be content buffer), second is an `options` object that contain `path`
238
-
caseStyle | `String/Function` | set property's case when converting a filepath to property list.
239
-
override | `Boolean` | determine whether override the property when get the same name
240
-
call | `Boolean` | determine whether invoke when exports is function
241
-
inject | `Object` | an object that be the argument when invoke the function
242
-
filter | `Function` | a function that filter the exports which can be loaded
|directory |`String/Array`| directories to be loaded|
234
+
|target |`Object`| attach the target object from loaded files|
235
+
|match |`String/Array`| match the files when load, default to `**/*.js`(if process.env.EGG_TYPESCRIPT was true, default to `[ '\*_/_.(js|ts)', '!\*_/_.d.ts' ]`)|
236
+
|ignore |`String/Array`| ignore the files when load|
237
+
|initializer |`Function`| custom file exports, receive two parameters, first is the inject object(if not js file, will be content buffer), second is an `options` object that contain `path`|
238
+
|caseStyle |`String/Function`| set property's case when converting a filepath to property list.|
239
+
|override |`Boolean`| determine whether override the property when get the same name|
240
+
|call |`Boolean`| determine whether invoke when exports is function|
241
+
|inject |`Object`| an object that be the argument when invoke the function|
242
+
|filter |`Function`| a function that filter the exports which can be loaded|
0 commit comments