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