Publish an ECMAScript Module package
So as it can be used like this:
<script type="module">
import {Previewer} from 'https://www.unpkg.com/pagedjs/dist/pagedjs.esm.js';
// ...
</script>
The current state of what can be seen is here: https://unpkg.com/pagedjs@0.1.30/dist/ And more about unpkg on https://unpkg.com/ — it exposes the content of npm modules on the web.