Skip to content

Trace plugin dependencies via static loaders#3

Open
DmitrySharabin wants to merge 1 commit into
mainfrom
static-plugin-loaders
Open

Trace plugin dependencies via static loaders#3
DmitrySharabin wants to merge 1 commit into
mainfrom
static-plugin-loaders

Conversation

@DmitrySharabin

@DmitrySharabin DmitrySharabin commented Jun 10, 2026

Copy link
Copy Markdown
Member

Problem

Plugins are lazy-loaded by URL, so they sit outside the static module graph and import-map/bundler tooling can't trace their dependencies.

Fix

The autoload registry now carries a static string-literal loader per plugin (() => import("./<id>/plugin.js")), passed through to the core registry. Tooling can trace each plugin's dependencies; the loader runs only on a selector match, so nothing loads eagerly.

This is the architectural enabler; the markdown CDN fix (#4) builds on it.

Related PRs

🤖 Generated with Claude Code

Plugins are lazy-loaded by URL, so they sit outside the static module
graph and import-map/bundler tooling can't see their dependencies. The
autoload registry now carries a static string-literal loader per plugin
(`() => import("./<id>/plugin.js")`), passed through to the core
registry. Tooling can trace each plugin's deps; the loader still runs
only on a selector match, so nothing loads eagerly.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@DmitrySharabin DmitrySharabin force-pushed the static-plugin-loaders branch from 18476ff to 1785839 Compare June 10, 2026 17:29
@DmitrySharabin DmitrySharabin changed the title Bundle markdown-it locally instead of loading it from a CDN Trace plugin dependencies via static loaders Jun 10, 2026
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.

1 participant