@module-federation/enhanced
Advanced tools
Comparing version 0.0.0-next-20240105121713 to 0.0.0-next-20240105131424
@@ -6,2 +6,3 @@ import type { Compiler } from 'webpack'; | ||
entryFilePath: string; | ||
bundlerRuntimePath: string; | ||
constructor(options?: ModuleFederationPluginOptions); | ||
@@ -8,0 +9,0 @@ static getTemplate(runtimePlugins: string[], bundlerRuntimePath?: string): string; |
@@ -26,2 +26,3 @@ "use strict"; | ||
this.entryFilePath = ''; | ||
this.bundlerRuntimePath = BundlerRuntimePath; | ||
} | ||
@@ -79,3 +80,3 @@ static getTemplate(runtimePlugins, bundlerRuntimePath) { | ||
} | ||
this.entryFilePath = FederationRuntimePlugin.getFilePath(this.options.name, this.options.runtimePlugins, this.options.implementation); | ||
this.entryFilePath = FederationRuntimePlugin.getFilePath(this.options.name, this.options.runtimePlugins, this.bundlerRuntimePath); | ||
return this.entryFilePath; | ||
@@ -93,3 +94,3 @@ } | ||
mkdirpSync(fs_1.default, constant_1.TEMP_DIR); | ||
fs_1.default.writeFileSync(filePath, FederationRuntimePlugin.getTemplate(this.options.runtimePlugins, this.options.implementation)); | ||
fs_1.default.writeFileSync(filePath, FederationRuntimePlugin.getTemplate(this.options.runtimePlugins, this.bundlerRuntimePath)); | ||
} | ||
@@ -181,2 +182,7 @@ } | ||
} | ||
if (this.options?.implementation) { | ||
this.bundlerRuntimePath = require.resolve('@module-federation/webpack-bundler-runtime', { | ||
paths: [this.options.implementation], | ||
}); | ||
} | ||
this.prependEntry(compiler); | ||
@@ -183,0 +189,0 @@ this.injectRuntime(compiler); |
{ | ||
"name": "@module-federation/enhanced", | ||
"version": "0.0.0-next-20240105121713", | ||
"version": "0.0.0-next-20240105131424", | ||
"main": "./dist/src/index.js", | ||
@@ -30,8 +30,8 @@ "types": "./dist/src/index.d.ts", | ||
"devDependencies": { | ||
"@module-federation/webpack-bundler-runtime": "0.0.0-next-20240105121713" | ||
"@module-federation/webpack-bundler-runtime": "0.0.0-next-20240105131424" | ||
}, | ||
"dependencies": { | ||
"@module-federation/sdk": "0.0.0-next-20240105121713", | ||
"@module-federation/runtime-tools": "0.0.0-next-20240105121713" | ||
"@module-federation/sdk": "0.0.0-next-20240105131424", | ||
"@module-federation/runtime-tools": "0.0.0-next-20240105131424" | ||
} | ||
} |
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
881410
14736
+ Added@module-federation/runtime@0.0.0-next-20240105131424(transitive)
+ Added@module-federation/runtime-tools@0.0.0-next-20240105131424(transitive)
+ Added@module-federation/sdk@0.0.0-next-20240105131424(transitive)
+ Added@module-federation/webpack-bundler-runtime@0.0.0-next-20240105131424(transitive)
- Removed@module-federation/runtime@0.0.0-next-20240105121713(transitive)
- Removed@module-federation/runtime-tools@0.0.0-next-20240105121713(transitive)
- Removed@module-federation/sdk@0.0.0-next-20240105121713(transitive)
- Removed@module-federation/webpack-bundler-runtime@0.0.0-next-20240105121713(transitive)
Updated@module-federation/runtime-tools@0.0.0-next-20240105131424