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

⚡️ fix/improve async load #635

Merged
merged 3 commits into from
Jun 13, 2023
Merged

⚡️ fix/improve async load #635

merged 3 commits into from
Jun 13, 2023

Conversation

stevejpurves
Copy link
Collaborator

thebe-core bundles a number of jupyterlab libraries which makes building with build systems other than webpack difficult, and building for the remix framework for example has require package patching to date.

As when using thebe-llite a consumer is faced with sideloading the library to the page anyway, we've modified the thebe-react async loading strategy to load bundles directly for both core and lite. This provides a programmatic way for loading both from their bundles, solving a bunch of downstream issues e.g. in myst-theme.

The original ThebeLoaderProvider is still available is the preference is to still include the package in the downstream build step.

A new loader ThebeBundleLoaderProvider will load the libraries using the new strategy and requires the downstream build process to make the libraries available on the correct path.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 13, 2023

PR Preview Action v1.4.4
Preview removed because the pull request was closed.
2023-06-13 13:38 UTC

@stevejpurves stevejpurves force-pushed the fix/improve-async-load branch from f0412fe to cdd742b Compare June 13, 2023 13:21
@stevejpurves stevejpurves merged commit b61fa4e into main Jun 13, 2023
@stevejpurves stevejpurves deleted the fix/improve-async-load branch June 13, 2023 13:33
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.

1 participant