Hello, deck.gl | Observable | Observable
js
js
js
js
js
js
js
js
js
js
js
Author
Fil
@fil
Vocateur.
Comments (2)
Mike Bostock
Oct 8
Try this as a simpler import: ```js import "npm:deck.gl/dist.min.js"; const deck = globalThis.deck; ``` In cases where libraries aren’t packaged as ES modules and instead expose globals, you can use this technique.
Fil
Oct 8
Much nicer, thanks!
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Explore
Forum
Bluesky
YouTube
X
0
Follow
Follow
Hello, deck.gl | Observable | Observable