mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-25 12:01:07 -05:00
This PR adds support for optionally running pyodide in a web worker: - add a new option config.execution_thread, which can be `main` or `worker`. The default is `main` - improve the test machinery so that we run all tests twice, once for `main` and once for `worker` - add a new esbuild target which builds the code for the worker The support for workers is not complete and many features are still missing: there are 71 tests which are marked as `@skip_worker`, but we can fix them in subsequent PRs. The vast majority of tests fail because js.document is unavailable: for it to run transparently, we need the "auto-syncify" feature of synclink. Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com> Co-authored-by: Madhur Tandon <20173739+madhur-tandon@users.noreply.github.com>
20 lines
584 B
JSON
20 lines
584 B
JSON
{
|
|
"$schema": "https://json.schemastore.org/tsconfig",
|
|
"_version": "3.0.0",
|
|
|
|
"include": ["src/**/*"],
|
|
"exclude": ["node_modules/*", "__sapper__/*", "public/*", "src/interpreter_worker/*"],
|
|
"compilerOptions": {
|
|
"moduleResolution": "node",
|
|
"target": "ES2020",
|
|
"module": "ES2020",
|
|
"types": ["jest", "node"],
|
|
"strict": false,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"isolatedModules": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"lib": ["es2017", "dom", "DOM.Iterable"]
|
|
}
|
|
}
|