Skip to content

generate-kotlin-js-browser-webroot: support Wasm + safer frontend task lookup #75

Description

@ShreckYe

Summary

com.huanshankeji.generate-kotlin-js-browser-webroot-for-vertx-web currently hardcodes jsBrowserDistribution and looks it up with tasks.getting inside afterEvaluate of the consuming project.

That is insufficient when:

  1. Wasm — consumers need wasmJsBrowserDistribution (and typically *.wasm / related assets), not only JS.
  2. Evaluation order — if the frontend KMP project has not registered the distribution Sync yet, configuration fails with “Task with name '…BrowserDistribution' not found”. Workarounds need evaluationDependsOn(frontend) or a lazy tasks.named(…).

Ask

Extend the plugin (or add a sibling) so consumers can choose JS vs Wasm (or both), include Wasm artifacts, and resolve the frontend distribution task without fragile evaluation-order failures.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions