Skip to content

Commit

Permalink
use type inference
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jan 23, 2022
1 parent 31e2bf4 commit b44b46b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/chunkAssignment.ts
Expand Up @@ -10,7 +10,7 @@ export function getChunkAssignments(
manualChunkAliasByEntry: ReadonlyMap<Module, string>
): ChunkDefinitions {
const chunkDefinitions: ChunkDefinitions = [];
const modulesInManualChunks = new Set<Module>(manualChunkAliasByEntry.keys());
const modulesInManualChunks = new Set(manualChunkAliasByEntry.keys());
const manualChunkModulesByAlias: Record<string, Module[]> = Object.create(null);
for (const [entry, alias] of manualChunkAliasByEntry) {
const chunkModules = (manualChunkModulesByAlias[alias] =
Expand Down Expand Up @@ -117,7 +117,7 @@ function analyzeModuleGraph(entryModules: readonly Module[]): {
const dependentEntryPointsByModule: DependentModuleMap = new Map();
const entriesToHandle = new Set(entryModules);
for (const currentEntry of entriesToHandle) {
const modulesToHandle = new Set<Module>([currentEntry]);
const modulesToHandle = new Set([currentEntry]);
for (const module of modulesToHandle) {
getOrCreate(dependentEntryPointsByModule, module, () => new Set()).add(currentEntry);
for (const dependency of module.getDependenciesToBeIncluded()) {
Expand Down

0 comments on commit b44b46b

Please sign in to comment.