🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

@module-federation/enhanced

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@module-federation/enhanced - npm Package Compare versions

Comparing version

to
0.0.0-next-20240402045522

@@ -145,2 +145,5 @@ "use strict";

compiler.hooks.make.tapAsync(PLUGIN_NAME, (compilation, callback) => {
const initialEntrypoints = typeof compiler.options.entry === 'function'
? compiler.options.entry()
: compiler.options.entry;
const dep = new ContainerEntryDependency_1.default(name,

@@ -172,6 +175,4 @@ //@ts-ignore

const addEntryToSingleRuntimeChunk = async () => {
const entries = typeof compiler.options.entry === 'function'
? await compiler.options.entry()
: compiler.options.entry;
const runtimes = new Set();
const entries = await initialEntrypoints;
Object.keys(entries).forEach((key) => {

@@ -178,0 +179,0 @@ if (entries[key].runtime) {

@@ -44,17 +44,2 @@ "use strict";

apply(compiler) {
let hasMultipleRuntime = 0;
compiler.hooks.make.tapPromise(this.constructor.name, async (compilation) => {
let entry;
if (typeof compilation.options.entry === 'function') {
entry = await compilation.options.entry();
}
else {
entry = compilation.options.entry;
}
Object.keys(entry).forEach((entryItem) => {
if (entry[entryItem].runtime) {
hasMultipleRuntime++;
}
});
});
compiler.hooks.compilation.tap('HoistContainerReferencesPlugin', (compilation) => {

@@ -61,0 +46,0 @@ const runtimes = new Set();

{
"name": "@module-federation/enhanced",
"version": "0.0.0-next-20240402000503",
"version": "0.0.0-next-20240402045522",
"main": "./dist/src/index.js",

@@ -31,11 +31,11 @@ "types": "./dist/src/index.d.ts",

"devDependencies": {
"@module-federation/webpack-bundler-runtime": "0.0.0-next-20240402000503"
"@module-federation/webpack-bundler-runtime": "0.0.0-next-20240402045522"
},
"dependencies": {
"upath": "2.0.1",
"@module-federation/sdk": "0.0.0-next-20240402000503",
"@module-federation/runtime-tools": "0.0.0-next-20240402000503",
"@module-federation/manifest": "0.0.0-next-20240402000503",
"@module-federation/managers": "0.0.0-next-20240402000503"
"@module-federation/sdk": "0.0.0-next-20240402045522",
"@module-federation/runtime-tools": "0.0.0-next-20240402045522",
"@module-federation/manifest": "0.0.0-next-20240402045522",
"@module-federation/managers": "0.0.0-next-20240402045522"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet