dhakehurst / kotlin.gradle.plugin.exportPublic

gradle kotlin compiler plugin to 'JsExport' all public declarations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Gradle Plugin Portal

net.akehurst.kotlin.gradle.plugin

  • exportPublic
  • jsIntegration

Latest Kotlin uses DCE to minimise JS module code size. Their suggestion is to add @JsExport annotation to all classes that you want to export. I don't like this. I think anything marked with public visibility should be exported. This plugin make that happen.

Add the plugin

plugins {
    id("net.akehurst.kotlin.gradle.plugin.exportPublic") version("1.0.0")
}

About

gradle kotlin compiler plugin to 'JsExport' all public declarations

License:Apache License 2.0


Languages

Language:Kotlin 100.0%