Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ES modules #145

Merged
merged 1 commit into from
Sep 28, 2022
Merged

Support ES modules #145

merged 1 commit into from
Sep 28, 2022

Conversation

kl0tl
Copy link
Contributor

@kl0tl kl0tl commented Apr 22, 2020

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 purescript/purescript#3791.

@cariandrum22
Copy link

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.

@andys8
Copy link
Contributor

andys8 commented Aug 5, 2022

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

@andys8
Copy link
Contributor

andys8 commented Aug 5, 2022

@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 added a commit to andys8/craco-purescript-loader that referenced this pull request Aug 5, 2022
Relying on <ethul/purs-loader#145> fork to support es modules.
@oguimbal
Copy link

+1 !

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

@ethul
Copy link
Owner

ethul commented Sep 19, 2022 via email

@ethul
Copy link
Owner

ethul commented Sep 28, 2022

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

@ethul ethul merged commit 4cea6cc into ethul:master Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants