Fix getModuleByDisplayName

This commit is contained in:
Samuel Elliott 2018-05-29 15:40:14 +01:00
parent c345ab1419
commit e57e1f51ea
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 4 additions and 1 deletions

View File

@ -418,6 +418,9 @@ export default class PluginApi {
getWebpackModuleByName(name, fallback) {
return WebpackModules.getModuleByName(name, fallback);
}
getWebpackModuleByDisplayName(name, fallback) {
return WebpackModules.getModuleByDisplayName(name, fallback);
}
getWebpackModuleByRegex(regex) {
return WebpackModules.getModuleByRegex(regex, true);
}
@ -440,7 +443,7 @@ export default class PluginApi {
return new Proxy({
getModule: this.getWebpackModule.bind(this),
getModuleByName: this.getWebpackModuleByName.bind(this),
getModuleByDisplayName: this.getWebpackModuleByName.bind(this),
getModuleByDisplayName: this.getWebpackModuleByDisplayName.bind(this),
getModuleByRegex: this.getWebpackModuleByRegex.bind(this),
getModulesByRegex: this.getWebpackModulesByRegex.bind(this),
getModuleByProperties: this.getWebpackModuleByProperties.bind(this),