help <script type="module" src="./main.ts"></script>
Closed this issue · 2 comments
zsq2010 commented
I dont how to use this example,how to compile ,rewirte,etc
could you pls show some clue? for the normal way
yanuu1337 commented
Compile the ts file and import the JS script instead.
TahaSh commented
@zsq2010 The examples I have get compiled with Vite, which supports TypeScript. But you don't have to use TypeScript or Vite to run the examples. You can rename the file to main.js
, and convert the example to JS by removing the types.
I've also just created this gist that shows how to use it in a single HTML file: https://gist.github.com/TahaSh/0e606ad3b3fb686b4f3df397d81a4699
Let me know if you have questions :)