purs-loader icon indicating copy to clipboard operation
purs-loader copied to clipboard

Support ES modules

Open kl0tl opened this issue 4 years ago • 5 comments

This PR slightly adjusts the regexps used to rewrite require paths in modules read from the output directory so it supports both CJS and ES modules, in anticipation of https://github.com/purescript/purescript/pull/3791.

kl0tl avatar Apr 22 '20 20:04 kl0tl

PureScript 0.15 has been released and the module system used in the output JavaScript has been changed from CommonJS to ES Modules.

I was wondering if you could this PR could be merged.

cariandrum22 avatar Jul 25 '22 09:07 cariandrum22

I tried this change and it seems to make purs-loader work with PureScript v0.15

andys8 avatar Aug 05 '22 16:08 andys8

@ethul In case you read this: Are you open to merge or add maintainers to this repository or would you rather prefer a fork being published on npm? :)

andys8 avatar Aug 05 '22 16:08 andys8

+1 !

... I came up with exactly the same fix, and was about to submit a PR until I found this one :)

oguimbal avatar Sep 19 '22 22:09 oguimbal

Thanks for the reminder for this. I have fallen a bit behind on PRs, but I will take a look—apologies for the delay!

On Mon, Sep 19, 2022 at 18:45 Olivier Guimbal @.***> wrote:

+1 !

... I came up with exactly the same fix, and was about to submit a PR until I found this one :)

— Reply to this email directly, view it on GitHub https://github.com/ethul/purs-loader/pull/145#issuecomment-1251646395, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACVRS5MYCZFBFP5MHGJYGDV7DUJRANCNFSM4MOP3GFA . You are receiving this because you were mentioned.Message ID: @.***>

ethul avatar Sep 19 '22 23:09 ethul

This looks great, apologies again for the delay on this. I will endeavor to be more prompt!

ethul avatar Sep 28 '22 13:09 ethul