@module-federation/enhanced
Advanced tools
Comparing version 0.0.0-next-20240122074526 to 0.0.0-next-20240123083034
@@ -119,5 +119,6 @@ /* | ||
new StaticExportsDependency(['get', 'init'], false)); | ||
this.addDependency( | ||
// @ts-ignore | ||
new EntryDependency(this._injectRuntimeEntry)); | ||
// this.addDependency( | ||
// // @ts-ignore | ||
// new EntryDependency(this._injectRuntimeEntry), | ||
// ); | ||
callback(); | ||
@@ -173,11 +174,11 @@ } | ||
} | ||
const initRuntimeDep = this.dependencies[1]; | ||
const initRuntimeModuleGetter = runtimeTemplate.moduleRaw({ | ||
module: moduleGraph.getModule(initRuntimeDep), | ||
chunkGraph, | ||
// @ts-expect-error | ||
request: initRuntimeDep.userRequest, | ||
weak: false, | ||
runtimeRequirements, | ||
}); | ||
// const initRuntimeDep = this.dependencies[1]; | ||
// const initRuntimeModuleGetter = runtimeTemplate.moduleRaw({ | ||
// module: moduleGraph.getModule(initRuntimeDep), | ||
// chunkGraph, | ||
// // @ts-expect-error | ||
// request: initRuntimeDep.userRequest, | ||
// weak: false, | ||
// runtimeRequirements, | ||
// }); | ||
const federationGlobal = (0, utils_1.getFederationGlobalScope)(RuntimeGlobals || {}); | ||
@@ -213,3 +214,3 @@ const source = Template.asString([ | ||
])};`, | ||
`${initRuntimeModuleGetter}`, | ||
// `${initRuntimeModuleGetter}`, | ||
'', | ||
@@ -216,0 +217,0 @@ '// This exports getters to disallow modifications', |
@@ -134,2 +134,6 @@ "use strict"; | ||
} | ||
debugger; | ||
new compiler.webpack.EntryPlugin(compiler.options.context || '', federationRuntimePluginInstance.entryFilePath, { | ||
name, | ||
}).apply(compiler); | ||
compiler.hooks.make.tapAsync(PLUGIN_NAME, (compilation, callback) => { | ||
@@ -176,2 +180,3 @@ const dep = new ContainerEntryDependency_1.default(name, | ||
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation, { normalModuleFactory }) => { | ||
debugger; | ||
compilation.dependencyFactories.set(ContainerEntryDependency_1.default, | ||
@@ -178,0 +183,0 @@ //@ts-ignore |
{ | ||
"name": "@module-federation/enhanced", | ||
"version": "0.0.0-next-20240122074526", | ||
"version": "0.0.0-next-20240123083034", | ||
"main": "./dist/src/index.js", | ||
@@ -31,8 +31,8 @@ "types": "./dist/src/index.d.ts", | ||
"devDependencies": { | ||
"@module-federation/webpack-bundler-runtime": "0.0.0-next-20240122074526" | ||
"@module-federation/webpack-bundler-runtime": "0.0.0-next-20240123083034" | ||
}, | ||
"dependencies": { | ||
"@module-federation/sdk": "0.0.0-next-20240122074526", | ||
"@module-federation/runtime-tools": "0.0.0-next-20240122074526" | ||
"@module-federation/sdk": "0.0.0-next-20240123083034", | ||
"@module-federation/runtime-tools": "0.0.0-next-20240123083034" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
968432
17089
+ Added@module-federation/runtime@0.0.0-next-20240123083034(transitive)
+ Added@module-federation/runtime-tools@0.0.0-next-20240123083034(transitive)
+ Added@module-federation/sdk@0.0.0-next-20240123083034(transitive)
+ Added@module-federation/webpack-bundler-runtime@0.0.0-next-20240123083034(transitive)
- Removed@module-federation/runtime@0.0.0-next-20240122074526(transitive)
- Removed@module-federation/runtime-tools@0.0.0-next-20240122074526(transitive)
- Removed@module-federation/sdk@0.0.0-next-20240122074526(transitive)
- Removed@module-federation/webpack-bundler-runtime@0.0.0-next-20240122074526(transitive)
Updated@module-federation/runtime-tools@0.0.0-next-20240123083034