Fix module loading

This commit is contained in:
Chi Vinh Le
2017-04-03 14:41:11 +07:00
parent 62c4072631
commit 512405b3f0
@@ -8,7 +8,7 @@ function moduleExists(loc) {
return true;
}
const hasExtension = /\..*$/.test(loc);
const hasExtension = /\.[^\/\\]*$/.test(loc);
if (hasExtension) {
return false;
}