Skip to content

Commit dfc11bb

Browse files
committed
Fix for Safari
1 parent 3432adc commit dfc11bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ jobs:
8787
8888
$(wasm32-wasi-ghc --print-libdir)/post-link.mjs -i $(wasm32-wasi-cabal list-bin pointfree-wasm:exe:pointfree-wasm) -o gh-pages-result/pointfree-wasm.js
8989
90+
# Remove import that Safari doesn’t like.
91+
sed -i -re 's/^([ \t]*).*import\("node:timers"\).*$/\1throw new Error("node not supported");/' gh-pages-result/pointfree-wasm.js
92+
9093
- name: Deploy on Github Pages
9194
uses: peaceiris/actions-gh-pages@v3
9295
if: ${{ matrix.deploy && (github.ref == 'refs/heads/master') }}

0 commit comments

Comments
 (0)