Commit 8d2bb30
chore: migrate to esbuild tooling and update Pyodide to 314.0.7
Align the build with the official Acode plugin template and fix Python
failing to load on some devices.
Tooling:
- Replace webpack/babel/postcss/sass with esbuild (dev server on :3000)
- Restore pack-zip.js at the repo root (webpack config imported a moved file)
- Copy the Pyodide runtime from npm into dist/lib on every build; dist/lib
had been dropped from git, so clean builds shipped without Python
- Add tsconfig for acode-plugin-types, Biome dev dependency and check script
- Replace JSX with tag() calls and SCSS with plain CSS
Pyodide:
- Update to 314.0.7 (Python 3.14); run the worker as a module worker
- Bundle the Pyodide loader into worker.js so .mjs MIME types do not matter
- Fall back to ArrayBuffer wasm compilation when .wasm is not served as
application/wasm, which otherwise hung on "loading..."
- Load packages on demand from the matching jsDelivr CDN (numpy, micropip...)
- Route stderr correctly and show clear load errors with retry on next run
Also bump to 1.2.0, add contributor, fix plugin.json main path.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent e80afc5 commit 8d2bb30
24 files changed
Lines changed: 1862 additions & 10773 deletions
File tree
- .vscode
- src
Binary file not shown.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
19 | 41 | | |
20 | 42 | | |
21 | 43 | | |
0 commit comments