Skip to content

Load markdown-it as a local dependency instead of from a CDN#4

Open
DmitrySharabin wants to merge 1 commit into
static-plugin-loadersfrom
markdown-local-dep
Open

Load markdown-it as a local dependency instead of from a CDN#4
DmitrySharabin wants to merge 1 commit into
static-plugin-loadersfrom
markdown-local-dep

Conversation

@DmitrySharabin

Copy link
Copy Markdown
Member

Problem

The markdown plugin imported markdown-it from esm.sh at runtime, which kept timing out.

Fix

Add markdown-it as a dependency and import it by bare specifier so it resolves through the import map / bundler.

Stacked on

Based on #3 (static plugin loaders) — those loaders are what let import-map/bundler tooling trace markdown-it into the import map. Merge #3 first, and inspire-js/core#2 for runtime.

Related PRs

🤖 Generated with Claude Code

The markdown plugin imported markdown-it from esm.sh at runtime, which
kept timing out. Add it as a dependency and import it by bare specifier
so it resolves through the import map / bundler.

Relies on the static plugin loaders (base branch) so tooling traces
markdown-it into the import map.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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