3 ms·
This looks like fun! I've been meaning to experiment with some WASM, but none of my ideas warrant investing time setting things up just yet, so I haven't. This
by aylmao 7y ago
This looks like fun! I've been meaning to experiment with some WASM, but none of my ideas warrant investing time setting things up just yet, so I haven't. This will come in handy. @lastmjs: does it support defining the script MIME? I'm thinking something like:
<script id="myGeeks" type="text/tsx">
// ... script here
</script>
This really would be a great addition if not, and help drive the narrative that this brings simplicity back to that of "the old days" of web development (:
- lastmjs 7y agoYou should be able to set the MIME type: https://github.com/lastmjs/zwitterion#headers-file https://github.com/lastmjs/zwitterion#headers-file In the case above, you would need to say type="module", because you are importing a module even if it is tsx. But, you should be able to set the MIME type for .tsx files with a custom header file
- aylmao 7y agoAwesome! thanks for the heads up!