-
Notifications
You must be signed in to change notification settings - Fork 315
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
base: main
Are you sure you want to change the base?
Elijah/add web interface #759
Conversation
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
@@ -15,16 +15,18 @@ | |||
"exports": { | |||
".": { | |||
"node": "./node/dist/index.cjs", | |||
"browser": "./web/dist/index.js", | |||
"browser": "./web/dist/interface.js", |
There was a problem hiding this comment.
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": "???"
}
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. |
@elijahmorg any news on this? should someone hop in and finish this? |
I will try to wrap this up this week. Went down bad with the flu. |
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