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

Improve bundling of web-viewer package #6659

Merged
merged 16 commits into from
Jul 1, 2024
Merged

Improve bundling of web-viewer package #6659

merged 16 commits into from
Jul 1, 2024

Conversation

jprochazk
Copy link
Member

@jprochazk jprochazk commented Jun 26, 2024

What

It turns out that the following issue is actually two different memory leaks in a trench coat:

This PR addresses the 2nd one, by changing the way we output and bundle the rerun-io/web-viewer package:

To support usage in rerun_notebook and other environments which do not support the new URL pattern, the index.js, re_viewer.js, and re_viewer_bg.wasm files are concatenated into a single inlined.js file.

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
  • If applicable, add a new check to the release checklist!

To run all checks from main, comment on the PR with @rerun-bot full-check.

@jprochazk jprochazk marked this pull request as ready for review June 28, 2024 11:25
@emilk emilk self-requested a review June 28, 2024 12:45
emilk
emilk approved these changes Jun 28, 2024
rerun_notebook/build.mjs Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
rerun_js/web-viewer/build-wasm.mjs Outdated Show resolved Hide resolved
rerun_js/web-viewer/bundle.mjs Show resolved Hide resolved
rerun_js/web-viewer/bundle.mjs Outdated Show resolved Hide resolved
rerun_js/web-viewer/index.ts Show resolved Hide resolved
@jprochazk jprochazk added 🕸️ web regarding running the viewer in a browser notebook Jupyter notebooks etc exclude from changelog PRs with this won't show up in CHANGELOG.md labels Jul 1, 2024
@jprochazk jprochazk merged commit 7b260c3 into main Jul 1, 2024
35 checks passed
@jprochazk jprochazk deleted the jan/postprocess-wbg branch July 1, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude from changelog PRs with this won't show up in CHANGELOG.md notebook Jupyter notebooks etc 🕸️ web regarding running the viewer in a browser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants