style: fix

This commit is contained in:
alexander.akait 2024-10-09 01:51:36 +03:00 committed by ScriptedAlchemy
parent ddd92aba5d
commit db4a23ee9e
2 changed files with 4 additions and 2 deletions

View File

@ -78,7 +78,8 @@ class ContainerPlugin {
}
compiler.hooks.make.tapAsync(PLUGIN_NAME, (compilation, callback) => {
const hooks = getModuleFederationPlugin().getCompilationHooks(compilation);
const hooks =
getModuleFederationPlugin().getCompilationHooks(compilation);
const dep = new ContainerEntryDependency(name, exposes, shareScope);
dep.loc = { name };
compilation.addEntry(

View File

@ -27,7 +27,8 @@ class HoistContainerReferences {
*/
apply(compiler) {
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, compilation => {
const hooks = getModuleFederationPlugin().getCompilationHooks(compilation);
const hooks =
getModuleFederationPlugin().getCompilationHooks(compilation);
const containerEntryDependencies = new Set();
hooks.addContainerEntryDependency.tap(PLUGIN_NAME, dep => {
containerEntryDependencies.add(dep);