Repository navigation
feat(jupyter-widget): ES module libraries import deck.gl by package name (experimental) - #10794
Merged
Merged
Conversation
This was referenced Oct 4, 2026
chrisgervang
added a commit
that referenced
this pull request
Oct 4, 2026
This was referenced Oct 4, 2026
chrisgervang
marked this pull request as ready for review
October 4, 2026 04:44
|
chrisgervang
force-pushed
the
chr/jupyter-widget-esm-shared-modules
branch
from
October 4, 2026 04:50
086a70e to
45ee01d
Compare
Collaborator
Author
|
@greptileai re-review |
ibgreen
approved these changes
Oct 4, 2026
Collaborator
Author
|
Released in deck.gl 9.4.1 as |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For #10800
Background
ES module custom libraries (
module=True, #10665) cannot import deck.gl by package name. Thelumaglobal is a subset of luma.gl, and a library that brings its own copy fails with "luma.gl - multiple versions detected", so published packages such as@deck.gl-community/layersdo not load.Tracked in #10763.
Change List
shared-modules.js: import map from package names to the widget's bundled copies, experimentaladdCustomLibraries: installs the map before the first ES module library@deck.gl/*,@luma.gl/core,engine,shadertools,webgl,@loaders.gl/core,@math.gl/corepackage.json: declare@luma.gl/engine,@luma.gl/shadertools,@math.gl/coredist/index.jsgrows from 4.91 MB to 5.13 MB (full namespaces)custom_layers.rst, CHANGELOGVerified with
yarn build, the jupyter-widget headless tests, and the built bundle in a srcdoc iframe in Chromium, Firefox and WebKit: all nine@deck.gl-community/*@9.4.1packages load from esm.sh with?external=, andPathOutlineLayerandPathMarkerLayerrender on the widget'sLayer.