Discussed in #3142
Originally posted by barakplasma September 17, 2024
can we inline pyodide / sqlglot into the web/client/src/assets folder for offline support? For environments with a firewall for example? Feels weird to make requests to jsdelivr.net every time I want to format some sql
Toby said sure.
Design: use https://github.com/pyodide/pyodide-pack to make a bundle of all the pip libraries etc
See also https://pyodide-pack.pyodide.org/en/latest/module-elimination-at-runtime.html
I'll attempt to implement it and make a PR, but feel free to do it yourselves as well