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

Remove the stdlib and inspector dependency from the runtime #937

Open
mbostock opened this issue Feb 28, 2024 · 1 comment
Open

Remove the stdlib and inspector dependency from the runtime #937

mbostock opened this issue Feb 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mbostock
Copy link
Member

We’ve implemented our own self-hosted standard library within Framework, but we’re still using the same Runtime that notebooks use which depends on the notebook standard library. Related to #573, we should restructure the Runtime so that it doesn’t depend on @observablehq/stdlib and @observablehq/inspector, giving users (and us) more flexibility and saving a few bytes.

@mbostock mbostock added the enhancement New feature or request label Feb 28, 2024
@mbostock
Copy link
Member Author

mbostock commented Mar 2, 2024

I tree-shaked the runtime dependency in #843, so this followup task just applies to releasing a new version of the Observable Runtime that does the tree-shaking internally (rather than bundling stdlib). See this workaround:

https://github.com/observablehq/framework/blob/main/src/client/runtime.js

(I’m still including the inspector because we need that.)

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

No branches or pull requests

1 participant