Import in pure javascript

I am going to use yjs library in html page.
how can import it using script tag?

There is no Yjs bundle that you can include via a tag, as you would do with jQuery. But it should be easy to import Yjs as an esm module from a CDN. This works in the browser:

<script type="module">
import * as Y from 'https://esm.sh/yjs@13'
</script>