Skip to content

[Feature] Handle null sections in indexed sourcemap #2634

@EmmaYuan1015

Description

@EmmaYuan1015
  • Prepare an indexed sourcemap where one section has map: null.
  • Call SourceMapUtil.updateSourceMapFile with this sourcemap content.
  • In some cases flattening fails and updateSourceMapFile returns the original sourcemap body from catch path.

Expected behavior
Null sections should be normalized safely.
Indexed sourcemap should still be flattenable or handled by a robust fallback.
updateSourceMapFile should return a transformed sourcemap with updated file/sourceRoot/sources.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions