-
Notifications
You must be signed in to change notification settings - Fork 1
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
Switch to esm #13
base: master
Are you sure you want to change the base?
Switch to esm #13
Conversation
I appreciate this and I'll take a look at it. A couple issues stand out from the description tho:
|
ok looks like |
Top level await might not bring any benefits right now... in browser you can either use async import from anyware <script>
import('acme-easy').then(module => { ... })
</script>
But you can also do:
<script type="module">
import client from 'acme-easy'
</script> With import syntax you can also specify a import map to basically change cdn and how it should resolve dependencies. Another benefit would also be that this would then also work in Deno if you switched to ESM. (btw Deno don't have support for cjs - it only target ESM) |
I'll merge this right after I fix an issue with the protocol implementation |
Would you like me to divide this up to separate PRs? |
Couple of things:
standard * --fix
to format the code to look the same. it almost looked like you followed that pattern.import / export
( allows for top level await and other goodies )window.
prefix fromwindow.crypto
as NodeJS have a spec'ed web crypto on the global scope now.globalThis
instead of window, self or this... it's the new standard that exist in all env.