GitShow/denoland/deno-esbuild-plugin
denoland

deno-esbuild-plugin

A plugin for esbuild to support Deno-style resolution and loading

by denoland
Star on GitHubForknpm

TypeScript

15 stars1 forks2 contributorsQuiet · 7mo agoSince 20251.2.1MIT

Meet the team

See all 2 on GitHub →
marvinhagemeister
marvinhagemeister26 contributions
csvn
csvn1 contribution

Languages

View on GitHub →
TypeScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
37
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 7mo ago
See all on GitHub →
braddunbar
ESBuild minor version: Installs two versionsOpenIssue

When using a more recent minor version of ESBuild than is specified in results in a that contains two versions of . For example… If you then add an import from and into and run , you'll see that has two versions of . Despite the fact that depends on , dependencies in are written with because is treated differently. This means that using with this plugin installs two versions of ESBuild. ESBuild does not plan to move to version 1 as far as I know (it's been discussed quite a bit). So for the time being, I've included this plugin in my source tree to prevent doubling up . I'm not sure what a good solution is here other than to maybe rely on without a version to work around it. 🤷 Regardless, I thought I should raise the issue. Thanks for taking a look!

braddunbar · 3w ago
eibens
Files get corrupted in build outputOpenIssue

I tried to include fonts from in my bundle. Initially, esbuild complains about missing loader, so I specified loader for and . This seemingly fixed the issue, but now the font files are corrupted. Digging deeper, it appears like the bytes loaded in this line differ from the bytes on disk, i.e. using vs. . It is possible to circumvent the behavior with an additional plugin and maybe that's the intended solution. I'm not an esbuild expert and thought the option would be equivalent. It certainly seems counter-intuitive that included binary files silently get transformed. Reproduction Running the script below without args yields this in the browser: Using injects an additional plugin and yields this instead:

eibens · 4mo ago
KyleJune
feat: Add ability to split deno plugin into a resolver and loader pluginOpenPR

Resolves https://github.com/denoland/deno-esbuild-plugin/issues/31 For this PR, I took the current denoPlugin setup functions body, and split it into 3 distinct functions. Then in the new denoPlugins function, I made it create separate resolver and loader plugins that share the same workspace. The one existing test case related to plugins was broken, the one titled "plugins can participate in resolution". I re-wrote the test case to ensure both the onResolve and onLoad callbacks get called. The fake plugin being used before never had it's onResolve callback called because the mapped import was being caught and handled by the denoPlugin's onResolve since mapped exists in the import map. Then the onLoad callback wouldn't be called since the namespace would only get set if the fake plugins onResolve callback was called. Now I am having it import "simple" which is not in the import map. I have the onLoad callback transforming the code in a way that can easily be verified, it is multiplying the exported numbers by 2.

KyleJune · 6mo ago

Recent fixes

View closed PRs →
marvinhagemeister
chore: release 1.2.1MergedPR
marvinhagemeister · 7mo ago
KyleJune
Test case for "ignore modules it cannot resolve" is failingClosedIssue

On the latest version of Deno, a tes tappears to be failing. I'm not sure if it's caused by there being a newer patch version of the @deno/loader or a newer version of Deno. The error message is . I ran into this issue while working on fixing a different issue. Here is the output from running tests.

KyleJune · 7mo ago
marvinhagemeister
fix: update for @deno/loader@0.3.10MergedPR

The resolution error message changed for are specifiers. Fixes https://github.com/denoland/deno-esbuild-plugin/issues/30

marvinhagemeister · 7mo ago
Structured data for AI agents

Repository: denoland/deno-esbuild-plugin. Description: A plugin for esbuild to support Deno-style resolution and loading Stars: 15, Forks: 1. Primary language: TypeScript. Languages: TypeScript (100%). License: MIT. Latest release: 1.2.1 (7mo ago). Open PRs: 1, open issues: 6. Last activity: 7mo ago. Community health: 37%. Top contributors: marvinhagemeister, csvn.

·@ofershap

Replace github.com with gitshow.dev