-
-
Notifications
You must be signed in to change notification settings - Fork 298
Description
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:
- Go to npm package page
- Click on 'Code'
- Find source maps (both for CommonJs and for ESM)
- Check the
sources
andsourcesContent
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