Skip to content

Commit

Permalink
Fix: Resolve path of component files (#1305)
Browse files Browse the repository at this point in the history
Closes #1246
  • Loading branch information
Michael Hancock authored and sapegin committed Mar 6, 2019
1 parent 1abe4c2 commit 30ba0f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/loaders/utils/getComponentFiles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const glob = require('glob');
const path = require('path');
const isFunction = require('lodash/isFunction');
const isString = require('lodash/isString');

Expand Down Expand Up @@ -46,6 +47,9 @@ module.exports = function getComponentFiles(components, rootDir, ignore) {

// Resolve list of components from globs
const componentFiles = getFilesMatchingGlobs(componentGlobs, rootDir, ignore);

// Get absolute component file paths with correct slash separator format
const resolvedComponentFiles = componentFiles.map(file => path.resolve(file));

return componentFiles;
return resolvedComponentFiles;
};

0 comments on commit 30ba0f5

Please sign in to comment.