dukat
dukat copied to clipboard
Relative imports are not resolved
import {Pinger} from "./api/api";
function main() {
new Pinger().ping();
}
// api.ts
export class Pinger {
ping() {
console.log("ping");
}
}
is converted to a single file containing following code:
@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION")
import kotlin.js.*
import kotlin.js.Json
import org.khronos.webgl.*
import org.w3c.dom.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.dom.url.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
import org.w3c.performance.*
import org.w3c.workers.*
import org.w3c.xhr.*
fun main() { Pinger().ping() }
While we actually definitely expect to have api.ts converted as well. My understanding for that non-starred relative imports are something we actually a covering already