Skip to content

rewrite dynamic imports in ojs#170

Merged
mbostock merged 3 commits into
mainfrom
mbostock/observable-dynamic-import
Jun 16, 2026
Merged

rewrite dynamic imports in ojs#170
mbostock merged 3 commits into
mainfrom
mbostock/observable-dynamic-import

Conversation

@mbostock

Copy link
Copy Markdown
Member

Untested, and I think we should attempt to switch to jsDelivr from unpkg for consistency with our other imports, but should fix the import("gl-matrix") etc. being broken in Observable JavaScript cells in New Observable.

@mbostock mbostock requested a review from Fil June 15, 2026 04:35
@Fil

Fil commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

review, bug fix, and tests #171

* clarifies resolveNpmImport, fixes a bug (?) with `import("prettier/plugins/acorn.js")`

* adopt resolveNpmImport

* tests

* revert change to resolveNpmImport

* prettier

* /+esm for .js import in ojs

---------

Co-authored-by: Mike Bostock <mbostock@gmail.com>
@mbostock mbostock marked this pull request as ready for review June 16, 2026 00:01
@mbostock mbostock merged commit 1c8e9dc into main Jun 16, 2026
1 check passed
@mbostock mbostock deleted the mbostock/observable-dynamic-import branch June 16, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants