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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on top of esbuild Analyze #3757

Closed
jd-carroll opened this issue May 7, 2024 · 2 comments
Closed

Building on top of esbuild Analyze #3757

jd-carroll opened this issue May 7, 2024 · 2 comments

Comments

@jd-carroll
Copy link

Wondering if you would be willing to share the code for https://esbuild.github.io/analyze/ ? Or is it already some place and I am not seeing it (again... 馃槉) ?

I have a couple of ideas for a new tool which is built on top of the analyzer, but would need to know a little more about how it works. Specifically, if it would be possible to base64 encode (or other means) a metafile as a query string param to have it automatically load.

@hyrious
Copy link

hyrious commented May 8, 2024

On GitHub, you can always find the content for <user>.github.io at github.com/<user>/<user>.github.io for any <user>. So the source for esbuild.github.io is here: esbuild/esbuild.github.io.

Specifically, if it would be possible to base64 encode (or other means) a metafile as a query string param to have it automatically load.

This is supported. You can checkout its implementation to understand the usage. A simple example:

let analyze_url = new URL('https://esbuild.github.io/analyze/')
analyze_url.hash = btoa(JSON.stringify(metafile)).replace(/=+$/, '')
window.open(analyze_url, '_blank')

@jd-carroll
Copy link
Author

@hyrious Thanks, I forgot to check for a separate esbuild user

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

No branches or pull requests

2 participants