Is it not possible to get the source map when usin...
# javascript
h
Is it not possible to get the source map when using
IR
compiler? 🙂
b
Nope, It's comming soon-ish, but not here just yet.
h
That's a shame. Any ETA?
b
What I normally do is develop in legacy mode and switch it back to IR on release. Works 90% of the time.
h
Ok, makes sense. Gonna validate that it works with fritz2 🙂
When I did a quick switch a while back I got some error that it didn't find "kotlinx-seralization-jsLegacy". Have you seen that?
b
It can happen depending on what libraries/versions you're using. Some of them do not publish in BOTH mode
t
I call:
Copy code
./gradlew clean
./gradlew --stop
before every switch Legacy <-> IR
h
@turansky you seem to have fixed my bug somehow, but Im not sure how I apply your fix correctly as it doesn't seem to work for me. See here https://github.com/turansky/kfc-plugins/blob/7e475092ea4617deaa46e558b56a5a1492cc2[…]n/kotlin/com/github/turansky/kfc/gradle/plugin/WebpackPlugin.kt How can I get this to work for me?
I'm using Kotlin 1.5.20, kotlinx-serialization=1.2.1
The problem at hand:
Module not found: Error: Can't resolve 'kotlinx-serialization-kotlinx-serialization-core-jsLegacy' in /path/to/file/dce
t
Simplest solution - update other dependencies
Some of your dependencies use outdated
serialization
(not recommended for
1.5+
)
h
Oh, thanks. Must be fritz2, gonna try their snapshot