Export Runtime from PyScript Module (#868)

* export 'pyscript' JS module with runtime attribute, to allow accessing (Pyodide) runtime and globals from JS.
* add docs to explain the js module
* add integration tests for the js module

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Jeff Glass
2022-10-23 13:46:19 -05:00
committed by GitHub
parent aa85f5f596
commit d9b8b48972
7 changed files with 157 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ export default {
sourcemap: true,
format: "iife",
inlineDynamicImports: true,
name: "app",
name: "pyscript",
file: "build/pyscript.js",
},
{