Bradley Farias

Results 379 comments of Bradley Farias
trafficstars

There are source map comments ( see example in https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Use_a_source_map ) that we could serialize. Also people can use HTTP headers that allow this ( https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/SourceMap ) if it needs...

@sjrd I don't understand. I think you want source maps to always have a well known transform from JS Source Text to the AST but I don't think that is...

@sjrd wouldn't this be the same as a codegenerator that had a sourcemap that pointed to the `.scala` files by precomputing the chained offsets?

If we serialize SourceMap comments it could be inline. If you send the HTTP header it works right now?

@sjrd I disagree with your rebuttal since we have mechanisms to get these source maps. The source maps can point to either a chain or to precomputed maps. I see...

> Because a position, in a source map, is a triple (source file, line, column). An offset is an integer. We still need the source file reference. I would always...

A runtime throw is different from an early error, for example when trying to load ESM a runtime `throw` allows partial graph evaluation while an early error does not. A...

Need to think on this as it means all early errors could change how ESM graphs load if they are transformed to this AST. It seems like a new execution...

I think it could be plausible that problems could arise from having partially evaluated dep graphs. It would be rather surprising to see that. I don't have any examples because...

Nothing can depend on early errors in the wild today, this changes it so early errors are not early ; meaning, things can start to depend on being compiled so...