bugsnag / webpack-bugsnag-plugins

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

Support Webpack v4 #9

Closed bengourley closed 6 years ago

bengourley commented 6 years ago

Goals and changeset

Webpack v4 compatibility

The plugin interface changed from v3 to v4. The changelog lists the incompatibilities. Things that are definitely, or likely to need working around are:

Backwards compatibility for v3

Detecting the presence of Compiler.hooks should be sufficient feature detection to know whether to add the plugin via the v3/v4 interface. Unless there is any confirmation of the second point above, the internals of webpack used by plugin plugins does not need to change:

Tests

Tests have been adjusted so that they run on a matrix of node/webpack versions. Webpack v4 no longer supports Node v4 so that is excluded from the matrix.

foxyblocks commented 6 years ago

I’ll be digging into this first thing today