mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix(module): always fill requiredModules
This commit is contained in:
parent
e5ffbdfcd2
commit
83236d82ce
@ -134,10 +134,9 @@ module.exports = class ModuleContainer {
|
||||
// Resolve module meta
|
||||
const key = (handler.meta && handler.meta.name) || handler.name || src
|
||||
|
||||
// Check requireOnce if possbile
|
||||
if (requireOnce && typeof key === 'string') {
|
||||
const alreadyRequired = this.requiredModules[key]
|
||||
if (alreadyRequired) {
|
||||
// Update requiredModules
|
||||
if (typeof key === 'string') {
|
||||
if (requireOnce && this.requiredModules[key]) {
|
||||
return
|
||||
}
|
||||
this.requiredModules[key] = { src, options, handler }
|
||||
|
Loading…
Reference in New Issue
Block a user