Skip to content

Commit 8d2bb30

Browse files
bajrangCoderclaude
andcommitted
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

‎.DS_Store‎

-6 KB
Binary file not shown.

‎.babelrc‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎.gitignore‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node_modules
2-
*.zip
3-
dist/
4-
!dist/lib/
2+
dist
3+
plugin.zip
4+
.DS_Store

‎.vscode/pack-zip.js‎

Lines changed: 0 additions & 84 deletions
This file was deleted.

‎.vscode/run-webpack.js‎

Lines changed: 0 additions & 27 deletions
This file was deleted.

‎.vscode/settings.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"editor.codeActionsOnSave": {
3-
"quickFix.biome": "explicit",
4-
"source.organizeImports.biome": "explicit"
5-
}
6-
}
2+
"editor.codeActionsOnSave": {
3+
"quickFix.biome": "explicit",
4+
"source.organizeImports.biome": "explicit"
5+
}
6+
}

‎.vscode/start-dev.js‎

Lines changed: 0 additions & 33 deletions
This file was deleted.

‎.vscode/start-server.js‎

Lines changed: 0 additions & 183 deletions
This file was deleted.

‎README.md‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,28 @@ Using this plugin you can run python codes but you cannot import other python fi
1616
- Bugs fixes
1717
- Reduces waiting time
1818

19+
### Update 1.2.0
20+
21+
- Python 3.14 (Pyodide 314.0.7)
22+
- Import packages like `numpy` or `pandas` directly. They are downloaded on first use (internet required)
23+
- Install pure Python packages from PyPI with `micropip`:
24+
25+
```python
26+
import micropip
27+
await micropip.install("snowballstemmer")
28+
```
29+
30+
## Development
31+
32+
```sh
33+
npm install
34+
npm run dev # watch, serve on :3000, rebuild plugin.zip
35+
npm run build # bundle and write plugin.zip
36+
npm run check # lint and format check (Biome)
37+
```
38+
39+
In Acode, install from **Plugins → + → Remote** using `http://<your-ip>:3000/plugin.zip`.
40+
1941
## WARNING
2042

2143
This is plugin might not be supported in your device. To check weather this plugin is supported in your device or not, open console declare variable using 'const' key word. If it throws a error, your device doesn't support this plugin.

0 commit comments

Comments
 (0)