fix extension slicing
This commit is contained in:
parent
875543ea28
commit
81b81e4d10
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ const getAbsolutePath = (basePath, relativePath) => {
|
|||
|
||||
const getImportPath = (currentLocation, importLocation) => {
|
||||
let path = getAbsolutePath(currentLocation, importLocation);
|
||||
const extension = importLocation.slice((path.lastIndexOf(".") - 1 >>> 0) + 2);
|
||||
const extension = path.slice((path.lastIndexOf(".") - 1 >>> 0) + 2);
|
||||
return extension ? path : path.concat('.zok');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue