Skip to content

Commit

Permalink
refactor(enhanced): clean up ContainerPlugin whitespace and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptedAlchemy committed Sep 21, 2024
1 parent ea98a0f commit ed6eba4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/enhanced/src/lib/container/ContainerPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ class ContainerPlugin {
if (createdRuntimes.has(entry.options.runtime)) {
continue;
}

createdRuntimes.add(entry.options.runtime);
}
}
Expand All @@ -269,9 +268,7 @@ class ContainerPlugin {
compilation.addInclude(
compilation.options.context || '',
dep,
{
name: undefined,
},
{ name: undefined },
(error: WebpackError | null | undefined) => {
if (error) return callback(error);
hooks.addContainerEntryModule.call(dep);
Expand Down Expand Up @@ -305,7 +302,7 @@ class ContainerPlugin {
PLUGIN_NAME,
(compilation: Compilation, { normalModuleFactory }) => {
const federationRuntimeDependency =
federationRuntimePluginInstance.getDependency(compiler); // Pass compiler here
federationRuntimePluginInstance.getDependency(compiler);

const logger = compilation.getLogger('ContainerPlugin');
const hooks = FederationModulesPlugin.getCompilationHooks(compilation);
Expand Down

0 comments on commit ed6eba4

Please sign in to comment.