fix(playground): work around lack of module support in mdbook
This commit is contained in:
parent
79244b5815
commit
3e72969ce4
3 changed files with 12 additions and 12 deletions
|
|
@ -90,10 +90,11 @@
|
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/clusterize.js/0.19.0/clusterize.min.js"></script>
|
||||
|
||||
<script>LANGUAGE_BASE_URL = "";</script>
|
||||
<script type="module" src=playground.js></script>
|
||||
<script type="module" src="playground.js"></script>
|
||||
<script type="module">
|
||||
import {initializePlayground} from './playground.js';
|
||||
setTimeout(() => initializePlayground({local: true}), 1)
|
||||
import * as TreeSitter from './tree-sitter.js';
|
||||
window.TreeSitter = TreeSitter;
|
||||
setTimeout(() => window.initializePlayground({local: true}), 1)
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue