tweag / inline-js

Call JavaScript from Haskell, and vice versa!
https://inline-js.netlify.app
130 stars 10 forks source link

ImportToken #86

Closed mikelpr closed 3 years ago

mikelpr commented 3 years ago

on your blog post https://www.tweag.io/blog/2019-05-09-inline-js/ you show an example of importing const WebTorrent = (await import("webtorrent")).default

but I get ImportToken as an error for the quasiquotation. how did you get yours to compile?

mikelpr commented 3 years ago

between this and SpreadToken / HookToken I think it'd be most ideal if it just passed the quoted string verbatim to node without any kind of parsing by language-javascript