This may not match every use case, but we had trouble integrating this plugin with our webpack config because we don't want to output sourcemaps into our distributable directory, for security and IP reasons. So, we set the SourceMapDevToolPlugin's config.filename to ../tmp/[name].js.map (compared to webpackConfig.output.path = [hash]/[name].js)
This breaks BugsnagSourceMapUploaderPlugin which requires the absolute path to the map be exactly the output file's path, minus .map. Now this plugin will match files with the same name in any directory.
This may not match every use case, but we had trouble integrating this plugin with our webpack config because we don't want to output sourcemaps into our distributable directory, for security and IP reasons. So, we set the
SourceMapDevToolPlugin
'sconfig.filename
to../tmp/[name].js.map
(compared towebpackConfig.output.path
=[hash]/[name].js
)This breaks
BugsnagSourceMapUploaderPlugin
which requires the absolute path to the map be exactly the output file's path, minus.map
. Now this plugin will match files with the same name in any directory.