Skip to content

Commit

Permalink
Refact: remove duplicate absolutisation
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart committed Sep 11, 2018
1 parent f4d8d23 commit 763598c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions loaders/utils/getComponentFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,5 @@ module.exports = function getComponentFiles(components, rootDir, ignore) {
// Resolve list of components from globs
const componentFiles = getFilesMatchingGlobs(componentGlobs, rootDir, ignore);

// Make paths absolute
const componentFilesAbsolute = componentFiles.map(file => path.resolve(rootDir, file));

return componentFilesAbsolute;
return componentFiles;
};

0 comments on commit 763598c

Please sign in to comment.