-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Deno version #702
Comments
Good question, @antonygunawan94! I know of Deno, but I have not yet used it. What changes are necessary for Sanctuary to work in that runtime, do you know? |
For now @antonygunawan94 can use a service that handles the CJS -> ESM translation at the CDN level: https://jspm.org/ import S from 'https://jspm.dev/[email protected]' console.log (S.Just (42)) //> { //> "fantasy-land/equals": [Function: Just$prototype$equals], //> "fantasy-land/lte": [Function: Just$prototype$lte], //> value: 42 //> } If we want to provide a custom Deno build, the fastest way would probably be to introduce a new build file in The more thorough way is to fix #246 by completely rewriting Sanctuary as ESM (as done for Fluture in fluture-js/Fluture#276), and using a build script to bundle dependencies into a file in Real "native" Deno support would require that all Sancuary's dependencies are written using ESM and have their sources published somewhere, and then loaded directly via their URL instead of their NPM-package-name. This would break compatibility with NPM. The compilation approach desribed above allows for supporting both runtimes. (edited to correct the tone, which seemed a little snarky upon rereading, which was not my intention) |
Hello,
Are there any plans regarding porting sanctuary to Deno?
Thank you
The text was updated successfully, but these errors were encountered: