Skip to content

Commit

Permalink
Fix umd removal
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Feb 2, 2025
1 parent 2f732a9 commit a47ef53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ dist/pyodide.asm.js: \
# cat dist/pyodide.asm.js | grep -ohE 'var _{0,5}.' | sort | uniq -c | sort -nr | head -n 20
sed -i -E 's/var __Z[^;]*;//g' dist/pyodide.asm.js
sed -i '1i "use strict";' dist/pyodide.asm.js
# Remove last 4 lines of pyodide.asm.js, see issue #2282
# Remove last 7 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,4!{P;N;D;};N;ba' dist/pyodide.asm.js
sed -i -n -e :a -e '1,7!{P;N;D;};N;ba' dist/pyodide.asm.js
echo "globalThis._createPyodideModule = _createPyodideModule;" >> dist/pyodide.asm.js
@date +"[%F %T] done building pyodide.asm.js."

Expand Down

0 comments on commit a47ef53

Please sign in to comment.