Skip to content

Make polyscript.js_modules crawable #75

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

Merged
merged 1 commit into from
Dec 20, 2023
Merged

Conversation

WebReflection
Copy link
Contributor

@WebReflection WebReflection commented Dec 20, 2023

This MR addresses in polyscript the issue described in here: pyscript/pyscript#1903

It does so by adding all known modules as proxy and by testing these work in both the main thread and the worker thread.

Details

as soon as I register a JS module the pyodide interpreter tries to access all fields making the lazy loading (on demand) completely useless.

The current MR leaves Pyodide AS-IS because it's smart enough to crawl already JS references / namespaces without overly-bothering the module paths map/stack.

This MR has been successfully tested on both Pyodide and MicroPython.

@WebReflection WebReflection marked this pull request as ready for review December 20, 2023 14:27
@WebReflection WebReflection merged commit 4ea3c5b into main Dec 20, 2023
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