File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3815,9 +3815,8 @@ export class LuaTransformer {
38153815 const absoluteImportPath = this . formatPathToLuaPath ( this . getAbsoluteImportPath ( relativePath ) ) ;
38163816 const absoluteRootDirPath = this . formatPathToLuaPath ( rootDir ) ;
38173817 if ( absoluteImportPath . includes ( absoluteRootDirPath ) ) {
3818- const relativePathToRoot = this . formatPathToLuaPath (
3819- absoluteImportPath . replace ( absoluteRootDirPath , "" ) . slice ( 1 ) ) ;
3820- return this . formatPathToLuaPath ( relativePathToRoot ) ;
3818+ const relativePathToRoot = absoluteImportPath . replace ( absoluteRootDirPath , "" ) . slice ( 1 ) ;
3819+ return relativePathToRoot ;
38213820 } else {
38223821 throw TSTLErrors . UnresolvableRequirePath ( undefined ,
38233822 `Cannot create require path. Module does not exist within --rootDir` ,
You can’t perform that action at this time.
0 commit comments