bugsnag / webpack-bugsnag-plugins

Webpack plugins for common BugSnag actions.
MIT License
32 stars 29 forks source link

Support Webpack output.futureEmitAssets option #29

Closed bengourley closed 5 years ago

bengourley commented 5 years ago

This option is going to become the default in Webpack v5.

This PR adds a failing test for the current implementation and subsequently provides a fix.

Previously we relied on "existsAt" which is removed from Webpack 4.29.x (when output.futureEmitAssets is enabled) and will be gone in 5.x by default. Calculates the paths using apis that exist from Webpack 3 through to 5.

Fixes #28