Skip to content

Commit

Permalink
fix(terser-webpack-plugin): target webpack@5
Browse files Browse the repository at this point in the history
  • Loading branch information
buschtoens committed Nov 2, 2020
1 parent ed541cd commit db30731
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions types/terser-webpack-plugin/index.d.ts
Expand Up @@ -4,7 +4,7 @@
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import { Plugin } from 'webpack';
import { Compiler, WebpackPluginInstance } from 'webpack';
import { MinifyOptions } from 'terser';

/**
Expand Down Expand Up @@ -86,8 +86,10 @@ declare namespace TerserPlugin {
}
}

declare class TerserPlugin extends Plugin {
declare class TerserPlugin implements WebpackPluginInstance {
constructor(opts?: TerserPlugin.TerserPluginOptions);

apply: (compiler: Compiler) => void;
}

export = TerserPlugin;
3 changes: 2 additions & 1 deletion types/terser-webpack-plugin/package.json
@@ -1,6 +1,7 @@
{
"private": true,
"dependencies": {
"terser": "^5.3.8"
"terser": "^5.3.8",
"webpack": "^5.0.0"
}
}

0 comments on commit db30731

Please sign in to comment.