@module-federation/sdk 0.0.0-next-20240318082152 → 0.0.0-next-20240318094510
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -3
- package/dist/index.esm.js +1 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1128,9 +1128,7 @@ function createScriptNode(url, cb, attrs, createScriptHook) {
|
|
|
1128
1128
|
urlDirname = urlObj.pathname.split("/").slice(0, -1).join("/");
|
|
1129
1129
|
filename = path.basename(urlObj.pathname);
|
|
1130
1130
|
try {
|
|
1131
|
-
script = new vm.Script("(function(exports, module, require, __dirname, __filename) {".concat(data, "\n})"),
|
|
1132
|
-
filename: filename
|
|
1133
|
-
});
|
|
1131
|
+
script = new vm.Script("(function(exports, module, require, __dirname, __filename) {".concat(data, "\n})"), filename);
|
|
1134
1132
|
script.runInThisContext()(scriptContext.exports, scriptContext.module, eval("require"), urlDirname, filename);
|
|
1135
1133
|
exportedInterface = scriptContext.module.exports || scriptContext.exports;
|
|
1136
1134
|
if (attrs && exportedInterface && attrs["globalName"]) {
|
package/dist/index.esm.js
CHANGED
|
@@ -1124,9 +1124,7 @@ function createScriptNode(url, cb, attrs, createScriptHook) {
|
|
|
1124
1124
|
urlDirname = urlObj.pathname.split("/").slice(0, -1).join("/");
|
|
1125
1125
|
filename = path.basename(urlObj.pathname);
|
|
1126
1126
|
try {
|
|
1127
|
-
script = new vm.Script("(function(exports, module, require, __dirname, __filename) {".concat(data, "\n})"),
|
|
1128
|
-
filename: filename
|
|
1129
|
-
});
|
|
1127
|
+
script = new vm.Script("(function(exports, module, require, __dirname, __filename) {".concat(data, "\n})"), filename);
|
|
1130
1128
|
script.runInThisContext()(scriptContext.exports, scriptContext.module, eval("require"), urlDirname, filename);
|
|
1131
1129
|
exportedInterface = scriptContext.module.exports || scriptContext.exports;
|
|
1132
1130
|
if (attrs && exportedInterface && attrs["globalName"]) {
|