Skip to content

Source maps contain the links to the absent src folder #529

@zaycker

Description

@zaycker

Describe the bug
Source maps included to the npm module contain the links to the src folder, while there is no src folder in the package.
As a result the webpack development build in the project that uses react-zoom-pan-pinch warns about missing files.
In the version 3.6.1 source maps contained sourcesContent property with the contents of those files from src and webpack had no need to resolve the files from sources list, it just used the content of files from the sourcesContent.
In the 3.7.0 sourcesContent contains [null, null, null....].

To Reproduce
Steps to reproduce the behavior:

  1. Go to npm package page
  2. Click on 'Code'
  3. Find source maps (both for CommonJs and for ESM)
  4. Check the sources and sourcesContent properties

Expected behavior
Either the module should contain src folder or sourcesContent property should be filled with sources content

Screenshots

Desktop (please complete the following information):

  • OS: Win and MacOS

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