CLOVIS
07/05/2025, 5:27 PMjsBrowserDevelopmentRun
, I get:
• build/js/packages/example-simple/kotlin/example-simple.js
• build/js/packages/example-simple/kotlin/example-simple.js.map
The second one contains:
{
"version": 3,
"sources": [
"../../../../../src/jsMain/kotlin/Main.kt",
"../../../../compileSync/js/main/developmentExecutable/kotlin/src/kotlin/util/Standard.kt"
],
// …
The Main.kt
file refers to my own source code, fine.
However, I don't understand that Standard.kt
file. The build/compileSync/js/main/developmentExecutable/kotlin
folder does NOT contain a src/
folder, and there is no Standard.kt
file anywhere in the build/
directory.
What's going on here?leonhardt
07/05/2025, 9:42 PMCLOVIS
07/06/2025, 9:39 AMEdoardo Luppi
07/06/2025, 12:55 PMEdoardo Luppi
07/06/2025, 12:56 PMleonhardt
07/06/2025, 4:09 PMkotlin-kotlin-stdlib.mjs
), so I think proper sourcemap linking should be possible. As far as we've been able to figure, there is just a bug that produces broken paths.
@Artem Kobzar did acknowledge the issue a couple months ago by marking it as planned so we've just patiently waiting (with broken source maps) in the meantime.