Hi, I generated a new KMP project using Kotlin 1.9.0 and IntelliJ. In the build.gradle it says commonWebpackConfig is deprecated. I see that it is replaced with commonWebpackConfig(Action), but I don't know what that should look like or how to create the Action. Is there some documentation available or does anyone have an example of the updates to the config?
r
Rob Murdock
08/04/2023, 9:05 PM
In case you haven't found the answer yet, you can just say
Action { your-config-here }
to get an action that will fit in those slots. Actions are pretty easy to create
👍 1
g
gbaldeck
08/04/2023, 9:33 PM
Thanks! Do you know why they switched to that from the previous API?
r
Rob Murdock
08/06/2023, 6:26 PM
🤷 I would guess it has something to do with shifting Gradle internals and configuration cache stuff.