Permalink
Browse files

fix(build-resources): fix a regression caused by scoping support

  • Loading branch information...
niieani committed Jul 28, 2016
1 parent 40ddc1e commit d7dec552a5d3a83fac8ffbdb984251a741e9f004
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/build-resources.js
View
@@ -370,7 +370,7 @@ async function autoresolveTemplates(resources, packagePath, srcPath) {
function fixRelativeFromPath(fromPath, realSrcPath, realParentPath, externalModule) {
let fromPathSplit = fromPath.split('/');
if (moduleNames.indexOf(fromPathSplit[0]) !== -1 || moduleNames.indexOf(path.join(fromPathSplit[0], fromPathSplit[1])) !== -1) {
if (moduleNames.indexOf(fromPathSplit[0]) !== -1 || (fromPathSplit.length > 1 && moduleNames.indexOf(path.join(fromPathSplit[0], fromPathSplit[1])) !== -1)) {
// already a module reference, non-relative, leave as-is:
return fromPath;
} else {

0 comments on commit d7dec55

Please sign in to comment.