Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(plugin_deno_resolver.ts): esbuild on stdin fails because referrer… #51

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

nestarz
Copy link

@nestarz nestarz commented Mar 28, 2023

… is not a valid url

Esbuild on stdin fails because referrer is not a valid url

Copy link
Owner

@lucacasonato lucacasonato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this. A couple of notes:

  • If the referrer is <stdin>, we should resolve relative to $cwd/<stdin>, not import.meta.url.
  • This needs a test before I can land it (to ensure it doesn't regress).

Could you tackle these points?

Also please don't re-format with prettier. Use deno fmt to format.

@nestarz
Copy link
Author

nestarz commented May 4, 2023

Done in the latest patch commits, do you approve them ?

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