Change export default to export =

This commit is contained in:
Joel Spadin
2019-03-03 21:13:02 -06:00
parent 874d94e033
commit b1340a2e6e
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -7,11 +7,13 @@
import { IOptions } from 'glob';
import { EntryFunc, Plugin } from 'webpack';
export interface PluginOptions {
interface PluginOptions {
basename_as_entry_name?: boolean;
}
export default class WebpackWatchedGlobEntries extends Plugin {
declare class WebpackWatchedGlobEntries extends Plugin {
static getEntries(globs: string[], globOptions?: IOptions, pluginOptions?: PluginOptions): EntryFunc;
static getFiles(globString: string, globOptions?: IOptions, basename_as_entry_name?: boolean): Record<string, string>;
}
export = WebpackWatchedGlobEntries;
@@ -1,4 +1,4 @@
import GlobEntriesPlugin from 'webpack-watched-glob-entries-plugin';
import GlobEntriesPlugin = require('webpack-watched-glob-entries-plugin');
new GlobEntriesPlugin(); // $ExpectType WebpackWatchedGlobEntries