@turansky: if you want to share between different projects, you could generate a jar (using maven or gradle) and import as a dependency. You will only need to configure some plugins (in the case of maven) to unwrap this dependencies and some scripts, so you can use some bundler like webpack to consume the generated js and bundle into one or more bundles to your app. It works very well and I'm using this configuration to create a front-end app with kotlin that will be deployed to a back-end using dotnet core.