Fix requirejs compatibility (#2283)

This commit is contained in:
Hood Chatham 2022-03-20 10:04:47 -07:00 committed by GitHub
parent 25358e4f38
commit a356fc4563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -59,6 +59,11 @@ build/pyodide.asm.js: \
let clearImmediate = globalThis.clearImmediate;\
let baseName, fpcGOT, dyncallGOT, fpVal, dcVal;\
' build/pyodide.asm.js
# Remove last 6 lines of pyodide.asm.js, see issue #2282
# Hopefully we will remove this after emscripten fixes it, upstream issue
# emscripten-core/emscripten#16518
# Sed nonsense from https://stackoverflow.com/a/13383331
sed -i -n -e :a -e '1,6!{P;N;D;};N;ba' build/pyodide.asm.js
echo "globalThis._createPyodideModule = _createPyodideModule;" >> build/pyodide.asm.js
date +"[%F %T] done building pyodide.asm.js."

View File

@ -71,6 +71,9 @@ substitutions:
alias for `any`.
{pr}`2277`
- {{Fix}} Pyodide now loads correctly even if requirejs is included.
{pr}`2283`
_February 19, 2022_
## Version 0.19.1