Fix typo & options
This commit is contained in:
parent
9875068228
commit
97138afb7d
|
@ -145,7 +145,7 @@ const Webpack = {
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds akk modules using its code.
|
* Finds all modules using its code.
|
||||||
* @param {RegEx} regex A regular expression to use to filter modules
|
* @param {RegEx} regex A regular expression to use to filter modules
|
||||||
* @param {object} [options] Options to configure the search
|
* @param {object} [options] Options to configure the search
|
||||||
* @param {Boolean} [options.defaultExport=true] Whether to return default export when matching the default export
|
* @param {Boolean} [options.defaultExport=true] Whether to return default export when matching the default export
|
||||||
|
@ -153,7 +153,7 @@ const Webpack = {
|
||||||
* @return {Any[]}
|
* @return {Any[]}
|
||||||
*/
|
*/
|
||||||
getAllByRegex(regex, options = {}) {
|
getAllByRegex(regex, options = {}) {
|
||||||
return WebpackModules.getModule(Filters.byRegex(regex), options);
|
return WebpackModules.getModule(Filters.byRegex(regex), Object.assign({}, options, {first: true}));
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue