Fix custom alias extensions

This commit is contained in:
Shawn 2018-12-18 14:59:36 -06:00
parent 1ace0b3156
commit 4c4f1d0e63

View file

@ -19,7 +19,7 @@ const addAliasesForCustomComponentFolder = (name, aliasObject) => {
for (let i = 0; i < components.length; i++) {
let folderName = components[i];
let aliasName = `@${name}/${folderName}`;
aliasObject[aliasName] = resolve(`${CUSTOM_ROOT}/${name}/${folderName}/index.js`);
aliasObject[aliasName] = resolve(`${CUSTOM_ROOT}/${name}/${folderName}/`);
}
return aliasObject;
};