Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support bundling of JS snippets #508

Copy link
Copy link
@sliemeobn

Description

@sliemeobn
Issue body actions

as mentioned in #477 we currently have no good solution for creating a library that contains both Swift and JS code.

even if we can automatically "import" JS globals via BridgeJS, certain cases will require JS code, eg when:

  • you need JS features that are not exposed through the bridge (eg: create a class)
  • the back and forth through the bridging layer adds unnecessary runtime work for a "chunk of JS work"

here is a use case from ElementaryUI:
I want to create Swift API that let's you define custom elements ("web components").
it is currently incubated in the elementary.codes repo (ts code, swift code)

ideally we can just develop a Swift package with JS functions and Swift functions, add and attribute, and it will all "just work" in the final app that uses this library.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.