-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
output.futureEmitAssets option breaks compatibility with source map upload plugins #8883
Comments
Thanks! Switching to that kind of implementation worked for us. For anybody else interested here's the change we made: bugsnag/webpack-bugsnag-plugins#29. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
The
output.futureEmitAssets
option added in v4.29 breaksBugsnagSourceMapUploaderPlugin
(specific Webpack version tested: 4.29.6).Full disclosure, I am the maintainer of
webpack-bugsnag-plugins
.Related issues
bugsnag/webpack-bugsnag-plugins#28
honeybadger-io/honeybadger-webpack#85
thredup/rollbar-sourcemap-webpack-plugin#61
Current behaviour
The source map uploader implements an
afterEmit
plugin which makes use ofsource.existsAt
to find the location of the output files and their accompanying source maps. When the new optionoutput.futureEmitAssets
is switched on (which I understand is to be the new default), the sources in theafterEmit
hook no longer have theexistsAt
property. This property does not exist on the sources in theemit
stage either, presumably because the files are not yet written to disk, but I assume the compiler must know where the files will end up being written?Steps to reproduce
Add
BugsnagSourceMapUploader
to any Webpack project using >=4.29 and enableoutput.futureEmitAssets
. Or check out this repro.Expected behaviour
At some stage around
emit
/afterEmit
I would expect there to be information on where a file exists on disk, so that theBugsnagSourceMapUploaderPlugin
can retrieve it. Prior to v4.29 this was the case, but subsequently it does not.Other relevant information:
webpack version: 4.29.x
Node.js version: any compatible
Operating System: any
Additional tools:
webpack-bugsnag-plugins
The text was updated successfully, but these errors were encountered: