mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
return promise in requireModule
This commit is contained in:
parent
aca45a15b0
commit
d94fddeb38
@ -78,9 +78,9 @@ class Module {
|
||||
|
||||
requireModule (moduleOpts) {
|
||||
if (this.modules.indexOf(moduleOpts) !== -1 || this.modules.indexOf(moduleOpts.src) !== -1) {
|
||||
return
|
||||
return false
|
||||
}
|
||||
this.addModule(moduleOpts)
|
||||
return this.addModule(moduleOpts)
|
||||
}
|
||||
|
||||
addModule (moduleOpts) {
|
||||
|
Loading…
Reference in New Issue
Block a user