We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bad9584 commit 8c6d3beCopy full SHA for 8c6d3be
packages/webpack-plugin/src/webpack4and5.ts
@@ -195,6 +195,14 @@ function webpackModuleMetadataInjectionPlugin(
195
});
196
}
197
198
+/**
199
+ * The factory function accepts BannerPlugin and DefinePlugin classes in
200
+ * order to avoid direct dependencies on webpack.
201
+ *
202
+ * This allow us to export version of the plugin for webpack 5.1+ and compatible environments.
203
204
+ * Since webpack 5.1 compiler contains webpack module so plugins always use correct webpack version.
205
+ */
206
export function sentryWebpackUnpluginFactory({
207
BannerPlugin,
208
DefinePlugin,
0 commit comments