4 years ago
If you have multiple modules built with Kotlin/JS, each gets compiled to its own .js file.
Wow thank you so much I’m trying that immediately!
So then I don’t use the bundle.js file but import each module.js in my web page?
The main error I get is the following: Module not found: Error: Can’t resolve ‘common-js’ in ‘/Users/galex/multi/backup-chord-view-mpp-before-android/chord-view-js/build/classes/kotlin/main’
@ ./chord-view-js.js 3:4-55
@ multi webpack-dev-server/client?http://localhost:8088/ webpack/hot/dev-server ./chord-view-jsℹ️ ｢wdm｣: Failed to compile.
If you got an example of a working project with common - then under - common-js, common_android, common-ios and projects that uses those platforms modules I would really appreciate that