mirror of https://github.com/webpack/webpack.git
style: fix
This commit is contained in:
parent
ddd92aba5d
commit
db4a23ee9e
|
@ -78,7 +78,8 @@ class ContainerPlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
compiler.hooks.make.tapAsync(PLUGIN_NAME, (compilation, callback) => {
|
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);
|
const dep = new ContainerEntryDependency(name, exposes, shareScope);
|
||||||
dep.loc = { name };
|
dep.loc = { name };
|
||||||
compilation.addEntry(
|
compilation.addEntry(
|
||||||
|
|
|
@ -27,7 +27,8 @@ class HoistContainerReferences {
|
||||||
*/
|
*/
|
||||||
apply(compiler) {
|
apply(compiler) {
|
||||||
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, compilation => {
|
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, compilation => {
|
||||||
const hooks = getModuleFederationPlugin().getCompilationHooks(compilation);
|
const hooks =
|
||||||
|
getModuleFederationPlugin().getCompilationHooks(compilation);
|
||||||
const containerEntryDependencies = new Set();
|
const containerEntryDependencies = new Set();
|
||||||
hooks.addContainerEntryDependency.tap(PLUGIN_NAME, dep => {
|
hooks.addContainerEntryDependency.tap(PLUGIN_NAME, dep => {
|
||||||
containerEntryDependencies.add(dep);
|
containerEntryDependencies.add(dep);
|
||||||
|
|
Loading…
Reference in New Issue