@module-federation/node
Advanced tools
Comparing version 0.0.1 to 0.1.0
const NodeFederationPlugin = require('./src/NodeFederationPlugin'); | ||
const StreamingTargetPlugin = require('./src/StreamingTargetPlugin'); | ||
const UniversalFederationPlugin = require('./src/UniversalFederationPlugin'); | ||
module.exports.NodeFederationPlugin = NodeFederationPlugin; | ||
module.exports.StreamingTargetPlugin = StreamingTargetPlugin; | ||
module.exports.UniversalFederationPlugin = UniversalFederationPlugin; |
{ | ||
"name": "@module-federation/node", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "Module Federation for Node.js", | ||
"main": "index.js", | ||
"peerDependencies": { | ||
"webpack": "5.40.0", | ||
"node-fetch": "^3.2.10" | ||
"node-fetch": "^3.2.10", | ||
"webpack": "5.40.0" | ||
} | ||
} |
@@ -355,3 +355,3 @@ /* | ||
Template.getFunctionContent( | ||
require('../hmr/JavascriptHotModuleReplacement.runtime.js') | ||
require('webpack/lib/hmr/JavascriptHotModuleReplacement.runtime.js') | ||
) | ||
@@ -358,0 +358,0 @@ .replace(/\$key\$/g, 'readFileVm') |
@@ -23,3 +23,2 @@ 'use strict'; | ||
//TODO: should use extractUrlAndGlobal from internal.js | ||
//TODO: should use Template system like LoadFileChunk runtime does. | ||
@@ -31,4 +30,4 @@ //TODO: should use vm.runInThisContext instead of eval | ||
console.log('remoteUrl',remoteUrl) | ||
const scriptUrl = remoteUrl.split("@")[1]; | ||
const moduleName = remoteUrl.split("@")[0]; | ||
const extractUrlAndGlobal = require('webpack/lib/util/extractUrlAndGlobal'); | ||
const [scriptUrl, moduleName] = extractUrlAndGlobal(remoteUrl); | ||
console.log("executing remote load", scriptUrl); | ||
@@ -35,0 +34,0 @@ return new Promise(function (resolve, reject) { |
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
39276
10
815