ipywidgets icon indicating copy to clipboard operation
ipywidgets copied to clipboard

HTMLManager uses hardcoded entrypoint (`dist/<name>.js`) for extensions

Open timkpaine opened this issue 1 year ago • 0 comments

Description

HTMLManager is hardcoded to pull from dist/<package name>

We should inspect the main attribute of the package.json if possible to identify the entrypoint.

Reproduce

use e.g. perspective which emits to dist/esm/

This likely won't work anyway due to use of esm, but just an example.

Expected behavior

Use the extension's preferred entry point, at the bare minimum main but ideally per-cdn.

Context

https://github.com/jupyter-widgets/ipywidgets/issues/2381 https://github.com/voila-dashboards/voila/issues/1128 https://github.com/voila-dashboards/voila/pull/1154 https://github.com/bqplot/bqplot/pull/1495

timkpaine avatar Apr 05 '24 23:04 timkpaine