-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
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:
esbuild/internal/js_parser/sourcemap_parser.go
Lines 38 to 41 in 02dae18
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 🙏