Skip to content

Null in sources content skips reading of file #147

Closed
@ilgonmic

Description

@ilgonmic
  • Operating System: macOS BigSur 11.2.3
  • Node Version: 16.0.0
  • NPM Version: 7.10.0
  • webpack Version: 5.37.0
  • source-map-loader Version: 2.0.1

Expected Behavior

null in sources content considered as sources should be retrieved by name (http://sourcemaps.info/spec.html)

Actual Behavior

null in sources content considered as skip reading of file

Code

{"version":3,"file":"untitled.js","sources":["kotlin-wrappers-kotlin-react-dom-jsLegacy.js","../../../../../src/main/kotlin/client.kt","../../../../../src/main/kotlin/welcome.kt"],"sourcesContent":[null,null,null], "names":[], "mappings":";"}

How Do We Reproduce?

Use source map with null in sourcesContent but having source file in file system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions