Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elijah/add web interface #759

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

elijahmorg
Copy link
Contributor

Add an interface to the limbo-worker.js for browser.
Make interface the entry point of the module - see test-limbo-pkg/index.html for an example.

resolves #756

build appears to work - test-limbo-pkg works
cleanup test-limbo-pkg vite fs allow
make interface.ts/js the entry point for the module
@elijahmorg elijahmorg marked this pull request as ready for review January 21, 2025 01:12
@@ -15,16 +15,18 @@
"exports": {
".": {
"node": "./node/dist/index.cjs",
"browser": "./web/dist/index.js",
"browser": "./web/dist/interface.js",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should default also be interface.js? Further, perhaps this should be sth like

      "node": {
        "import": "./node/dist/index.mjs", // if we have ES module support in node, i dont remember
        "require": "./node/dist/index.cjs",
      },
      "browser": {
        "import": "./web/dist/interface.js",
        "require": "???"
      }

@elijahmorg
Copy link
Contributor Author

This shouldn't go in quite yet - I'm trying to fix up a weird tsc compile step issue where tsc puts a dist dir inside of dist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Web Interface for wasm worker
2 participants