unfortunately webpack messes up the source maps an...
# javascript
c
unfortunately webpack messes up the source maps and kotlin code doesn't appear anymore int he dev tools within chrome
c
Have you got the jetbrains chrome extension installed?
c
no
why?
c
You'll need that to be able to walk through your kotlin code in the browser
c
so will it work even if I use webpack to bundle my js files?
uhm, i give it a try
c
yes, i use webpack and it works pretty great.
you might try firefox. if i recall right, source maps just work without needing an extension in firefox
c
ok I made it work in the end and I also see kotlin sources in the devtools
basically the trick is to tell webpack to load the existing source maps generated by kotlinjs using the source-map-loader
inside webpack config
it's nice, I can put breakpoints in the IDE
👍 1