mirror of https://github.com/pyodide/pyodide.git
Fix requirejs compatibility (#2283)
This commit is contained in:
parent
25358e4f38
commit
a356fc4563
5
Makefile
5
Makefile
|
@ -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."
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue