Skip to content

Commit c640252

Browse files
fix: ExtractCssChunksPlugin.loader is a string (#291)
Because else it doesn't work with: ``` { loader: CssExtractPlugin.loader, options: { hmr: !production && target !== 'node' }, } ``` type Loader is `string | NewLoader` and `NewLoader` is: ``` interface NewLoader { loader: string; options?: { [name: string]: any }; } ```
1 parent c3c22f8 commit c640252

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
declare module 'extract-css-chunks-webpack-plugin' {
2-
import { ChunkData, Loader, Plugin } from 'webpack';
2+
import { ChunkData, Plugin } from 'webpack';
33

44
class ExtractCssChunksPlugin extends Plugin {
5-
static loader: Loader;
5+
static loader: string;
66

77
constructor(options?: ExtractCssChunksPlugin.PluginOptions);
88
}

0 commit comments

Comments
 (0)