Fix RuntimeChunk types

This commit is contained in:
Stephanie Yu
2018-05-29 21:09:32 -04:00
parent 05cec665da
commit d016514130
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -221,7 +221,11 @@ declare namespace Config {
}
interface RuntimeChunk {
name: string | Function;
name: string | RuntimeChunkFunction;
}
interface RuntimeChunkFunction {
(entryPoint: Config.EntryPoint): string;
}
interface SplitChunksOptions { [name: string]: any; }
@@ -166,6 +166,7 @@ config
.removeAvailableModules(true)
.removeEmptyChunks(true)
.runtimeChunk("single")
.runtimeChunk({ name: ({}) => "hello" })
.sideEffects(true)
.splitChunks({})
.usedExports(true)