@module-federation/enhanced
Advanced tools
Comparing version 0.0.0-next-20240131231251 to 0.0.0-next-20240201072006
@@ -30,2 +30,3 @@ "use strict"; | ||
// internal runtime plugin | ||
const normalizedBundlerRuntimePath = (bundlerRuntimePath || BundlerRuntimePath).replaceAll('\\', '/'); | ||
let runtimePluginTemplates = ''; | ||
@@ -36,5 +37,5 @@ const runtimePLuginNames = []; | ||
const runtimePluginName = `plugin_${index}`; | ||
const runtimePluginPath = path_1.default.isAbsolute(runtimePlugin) | ||
const runtimePluginPath = (path_1.default.isAbsolute(runtimePlugin) | ||
? runtimePlugin | ||
: path_1.default.join(process.cwd(), runtimePlugin); | ||
: path_1.default.join(process.cwd(), runtimePlugin)).replaceAll('\\', '/'); | ||
runtimePluginTemplates += `import ${runtimePluginName} from '${runtimePluginPath}';\n`; | ||
@@ -45,3 +46,3 @@ runtimePLuginNames.push(runtimePluginName); | ||
return Template.asString([ | ||
`import federation from '${bundlerRuntimePath || BundlerRuntimePath}';`, | ||
`import federation from '${normalizedBundlerRuntimePath}';`, | ||
runtimePluginTemplates, | ||
@@ -48,0 +49,0 @@ `${federationGlobal} = {...federation,...${federationGlobal}};`, |
{ | ||
"name": "@module-federation/enhanced", | ||
"version": "0.0.0-next-20240131231251", | ||
"version": "0.0.0-next-20240201072006", | ||
"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-20240131231251" | ||
"@module-federation/webpack-bundler-runtime": "0.0.0-next-20240201072006" | ||
}, | ||
"dependencies": { | ||
"@module-federation/sdk": "0.0.0-next-20240131231251", | ||
"@module-federation/runtime-tools": "0.0.0-next-20240131231251" | ||
"@module-federation/sdk": "0.0.0-next-20240201072006", | ||
"@module-federation/runtime-tools": "0.0.0-next-20240201072006" | ||
} | ||
} |
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
968425
17084
+ Added@module-federation/runtime@0.0.0-next-20240201072006(transitive)
+ Added@module-federation/runtime-tools@0.0.0-next-20240201072006(transitive)
+ Added@module-federation/sdk@0.0.0-next-20240201072006(transitive)
+ Added@module-federation/webpack-bundler-runtime@0.0.0-next-20240201072006(transitive)
- Removed@module-federation/runtime@0.0.0-next-20240131231251(transitive)
- Removed@module-federation/runtime-tools@0.0.0-next-20240131231251(transitive)
- Removed@module-federation/sdk@0.0.0-next-20240131231251(transitive)
- Removed@module-federation/webpack-bundler-runtime@0.0.0-next-20240131231251(transitive)
Updated@module-federation/runtime-tools@0.0.0-next-20240201072006