Note it has "sources":["../../src/anchor-tag-builder.ts"] but there is no such file in the package. Webpack's source-map-loader looks for that file and produces the warning.
With inlineSources, the map file also has the sourcesContent property which may help webpack avoid the error. Example:
We're seeing some pretty gnarly source-maps warnings in a webpack build. Our project uses cesium, which depends on autolinker.
This is because the output file
anchor-tag-builder.js.map
has these contents:Note it has
"sources":["../../src/anchor-tag-builder.ts"]
but there is no such file in the package. Webpack's source-map-loader looks for that file and produces the warning.With
inlineSources
, the map file also has thesourcesContent
property which may help webpack avoid the error. Example: