Alex Styl
05/22/2024, 3:33 PMwebBrowserDistribution
?
I noticed that when I run it I can find the kotlin code on the Sources tab.
This is for a JS target (not wasm)Robert Jaros
05/22/2024, 3:51 PMwebBrowserDistribution
doesn't seem to be any of the standard Kotlin plugin tasksRobert Jaros
05/22/2024, 3:51 PMjsBrowserDistribution
?Alex Styl
05/22/2024, 3:51 PMjsBrowserDistribution
Robert Jaros
05/22/2024, 3:52 PMRobert Jaros
05/22/2024, 3:53 PMAlex Styl
05/22/2024, 3:55 PMRobert Jaros
05/22/2024, 3:57 PMAlex Styl
05/22/2024, 3:58 PMindex.html
file generated in the bundleAlex Styl
05/22/2024, 3:58 PMAlex Styl
05/22/2024, 4:01 PM./gradlew jsBrowserProductionRun
and checking the sources tabIsmail
05/22/2024, 4:03 PMIsmail
05/22/2024, 4:05 PMRobert Jaros
05/22/2024, 4:05 PMRobert Jaros
05/22/2024, 4:06 PMRobert Jaros
05/22/2024, 4:06 PMAlex Styl
05/22/2024, 4:07 PMjsBrowserDistribution
Alex Styl
05/22/2024, 4:08 PMAlex Styl
05/22/2024, 4:12 PMIt shouldn't be generated with distribution task@Robert Jaros are you sure about this? (as in is it documented somewhere?) i guess it somewhat makes sense to have the mappings generated, if the code is minified/obfuscated.
Alex Styl
05/22/2024, 4:13 PMRobert Jaros
05/22/2024, 4:15 PMAlex Styl
05/22/2024, 4:16 PM1.6.2
and tried also on 1.6.10
. which version are u on?Robert Jaros
05/22/2024, 4:17 PMRobert Jaros
05/22/2024, 4:20 PMRobert Jaros
05/22/2024, 4:20 PMRobert Jaros
05/22/2024, 4:22 PMwebpack.config.d
folder I have webpack.js
file with:
if (config.devServer) {
// other things
} else {
config.devtool = undefined;
}
Robert Jaros
05/22/2024, 4:23 PMRobert Jaros
05/22/2024, 4:23 PMRobert Jaros
05/22/2024, 4:25 PMwebpack.config.d
inside demo
subprojectRobert Jaros
05/22/2024, 4:33 PMjs(IR) {
browser {
webpackTask {
sourceMaps = false
}
}
}
Alex Styl
05/22/2024, 4:36 PM