tilgovi commented on issue #113: URL: https://github.com/apache/incubator-annotator/issues/113#issuecomment-883091895
We are generating ES6 imports/exports. We don't actually ship CommonJS at all right now. But npm package imports are not valid in the browser because the browser only allows imports from URLs (relative or absolute). I would have expected some of the CDNs that support bundling to work, like importing `import dom from 'https://cdn.skypack.dev/@apache-annotator/dom@dev'`. It looks like the `optimal-select` package declares a its `src/index.js` as its `module` entrypoint, though, but doesn't ship the `src` directory in its npm package, so that breaks. We can try to fix that, and we should absolutely consider more ways to package and ship, so we appreciate hearing what would be helpful and even more appreciate any help updating the packaging! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@annotator.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org