Closed carlomorelli closed 1 year ago
Thanks for reporting the issue. I'll check about Webpack 5.
Also it's required to update types after migration to webpack: ^5.0.0
.
diff --git a/lib/index.d.ts b/lib/index.d.ts
index 36f9c49..76b29ae 100644
--- a/lib/index.d.ts
+++ b/lib/index.d.ts
@@ -1,4 +1,4 @@
-import {Compiler, Plugin} from 'webpack';
+import {Compiler, WebpackPluginInstance} from 'webpack';
declare namespace WebpackUserscript {
type WebpackUserscriptOptions =
@@ -208,7 +208,7 @@ declare namespace WebpackUserscript {
}
}
-declare class WebpackUserscript extends Plugin {
+declare class WebpackUserscript implements WebpackPluginInstance {
constructor(options?: WebpackUserscript.WebpackUserscriptOptions);
apply(compiler: Compiler): void;
Ref: webpack/webpack#11630
:tada: This issue has been resolved in version 3.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Hi, I'm experimenting with Webpack 5.0.0 and webpack-userscript plugin (version 2.5.6). I see the following at terminal when launching
webpack
:The output is correctly generated anyway. This is my webpack.config.file: