fix localimports path ending

This commit is contained in:
Kevin Jahns 2020-01-14 02:36:29 +01:00
parent e089089413
commit 882b9055c7

View File

@ -26,7 +26,7 @@ const debugResolve = {
} }
if (localImports) { if (localImports) {
if (customModules.has(importee.split('/')[0])) { if (customModules.has(importee.split('/')[0])) {
return `${process.cwd()}/../${importee}/src/${importee}.cjs` return `${process.cwd()}/../${importee}/src/${importee}.js`
} }
if (customLibModules.has(importee.split('/')[0])) { if (customLibModules.has(importee.split('/')[0])) {
return `${process.cwd()}/../${importee}` return `${process.cwd()}/../${importee}`