mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
refactor: load all modules with esm (#3556)
This commit is contained in:
parent
8c85f2299e
commit
31d25df332
@ -112,9 +112,7 @@ export default class ModuleContainer {
|
||||
|
||||
// Resolve handler
|
||||
if (!handler) {
|
||||
// If module is internal (src starts with '.' or alias '@' '~'), support esm
|
||||
const isInnerModule = /^[.@~]/.test(src)
|
||||
handler = this.nuxt.requireModule(src, { esm: isInnerModule })
|
||||
handler = this.nuxt.requireModule(src)
|
||||
}
|
||||
|
||||
// Validate handler
|
||||
|
Loading…
Reference in New Issue
Block a user