Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's the purpose of this PR?
This PR solves issues related to running
deno vendor
on a fresh project.How does it work?
Vendoring in fresh is a little bit more difficult than in a "normal" deno project because it uses
esbuild
and, sometimes, dependency resolution is not accessible to deno's engine. To overcome this issue, I'm using a technique of explicitly configuring deno's engine to vendor dependencies by using the dynamic import tag. The upside of this approach is not actually importing the dependency but only configuring the vendoring engine to include this dependency.This PR fixes both fresh's and twind's plugin missing modules.
How to test it?
To test it, clone this version, link to a newly created fresh project and run:
The server should be spawned without any issues.