-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
deno compile
stack trace printing causes panics
#8578
Comments
We probably need to use some other scheme for the module specifiers of the embedded bundle, as we will run into this in various places I suspect... It is the disk cache trying to check to see if there is a source map it is supposed to use. What module specifier are you using for the bundle internally? |
It is a const defined in cli/standalone.rs. Currently it is |
Yeah, I think we need another scheme (and check places where we analyse the scheme to make sure we don't panic)... something like Eventually we need to support source maps for bundles, something that I wanted to get done for 1.6 but got distracted with other things, and so we ultimately want that to work. |
I don't think that's true because currently "self-contained" binaries have stubbed out loader that can load only a single file, we actually need to disable source mapping errors altogether for "self-contained" binaries (at least for now, until we support some kind of VFS for those binaries). Just to remind - currently errors are source mapped in two distinct places: in I've got that covered in #8381 just need to backport it. |
We could disable them for now, but we need to get source maps working for bundles and consuming/applying source maps that exist. We could simply inline the source maps in bundles. But I think it is a bad idea, generally, to use what is a |
cc @bartlomieju
The text was updated successfully, but these errors were encountered: