diff --git a/lib/core/module.js b/lib/core/module.js index d9b6ea8565..3b9c12d340 100644 --- a/lib/core/module.js +++ b/lib/core/module.js @@ -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