Skip to content

Support for binaries.executable() #72

Answered by mpetuska
LukasAnda asked this question in Q&A
Discussion options

You must be logged in to vote

Well binaries.executable() support for this plugin simply makes no sense as the plugin is specifically tailored for library assembly and publishing. There is a use-case for it in application context, to help package kotlin.js code to be consumed by local JS/TS application, but even then, from JS/TS perspective the kotlin code is served as a library and not an executable.

Now as for your @JsExport issue, I don't think it's related to either binaries, but rather to IR/Legacy kotlin backend (the annotation is only used by the IR backend).

Finally, code execution on require depends on what your code is. For example, all top-level values are eager in kotlin.js, therefore any builder logic need…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mpetuska
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #38 on November 26, 2022 21:45.