Merge pull request #837 from lbryio/refactor-build

Fix custom alias extensions
This commit is contained in:
Shawn K 2018-12-18 15:00:27 -06:00 committed by GitHub
commit a6abcd5a9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
};