Can we use this with esbuild
Closed this issue · 4 comments
Kali95739 commented
Want to know the best way to use this in the browser I heard recently all of purescript changed to es6 fully did this as well?
garyb commented
You can't use this library in the browser as it's for the build in child-process module provided by the node runtime.
Are you perhaps looking for something based on web workers if you're in the browser?
Kali95739 commented
So we cant use the FS module as well in purescript?
…On Tue, Nov 1, 2022, 10:10 AM Gary Burgess ***@***.***> wrote:
You can't use this library in the browser as it's for the build in
child-process module provided by the node runtime.
Are you perhaps looking for something based on web workers if you're in
the browser?
—
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN4RQ47K2CWFHLF2QHWSFTLWGE6H3ANCNFSM6AAAAAARTV2BRE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
.com>
Kali95739 commented
It should be possible to bundle it in such a way that we can transpile a
function into a web worker or such yes but Im looking for something based
on es6 or a alternative I have found a few but I was wondering if this one
actually would transpile through purescript and esbuild but thank you
…On Tue, Nov 1, 2022, 10:31 AM The One ***@***.***> wrote:
So we cant use the FS module as well in purescript?
On Tue, Nov 1, 2022, 10:10 AM Gary Burgess ***@***.***>
wrote:
> You can't use this library in the browser as it's for the build in
> child-process module provided by the node runtime.
>
> Are you perhaps looking for something based on web workers if you're in
> the browser?
>
> —
> Reply to this email directly, view it on GitHub
> <#38 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AN4RQ47K2CWFHLF2QHWSFTLWGE6H3ANCNFSM6AAAAAARTV2BRE>
> .
> You are receiving this because you authored the thread.Message ID:
> <purescript-node/purescript-node-child-process/issues/38/1298769014@
> github.com>
>
JordanMartinez commented
Closing as this was a question that seems to have been mostly answered.