Skip to content

Request: support "indexed" source maps #3439

@seanstrom

Description

@seanstrom

Hello 👋

I have a request for functionality related to how esbuild supports source maps at the moment. And in this case I would to request some additional support for source maps with the sections field, a.k.a "indexed" source maps

The reason for this request is because I'm using some tooling that compiles to JavaScript and provides a source map with this indexed source map format. And at the moment, these source maps are not supported by esbuild:

switch helpers.UTF16ToString(prop.Key.Data.(*js_ast.EString).Value) {
case "sections":
log.AddID(logger.MsgID_SourceMap_SectionsInSourceMap, logger.Warning, &tracker, keyRange, "Source maps with \"sections\" are not supported")
return nil


But I'm hoping that it would be possible to "flatten" these indexed source maps in a way that is similar to Webpack's approach seen here. What are your thoughts? Let me know what you think 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions