@module-federation/modern-js 0.0.0-next-20240528115713 → 0.0.0-next-20240529032552

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.
@@ -69,12 +69,6 @@ function collectLinks(id) {
69
69
  if (!publicPath) {
70
70
  return links;
71
71
  }
72
- const addProtocol = (url) => {
73
- if (url.startsWith("//")) {
74
- return `https:${url}`;
75
- }
76
- return url;
77
- };
78
72
  const modules = "modules" in snapshot ? snapshot.modules : [];
79
73
  if (modules) {
80
74
  const targetModule = modules.find((m) => m.modulePath === loadedRemoteInfo.expose);
@@ -86,7 +80,7 @@ function collectLinks(id) {
86
80
  ...targetModule.assets.css.async
87
81
  ].forEach((file, index) => {
88
82
  links.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)("link", {
89
- href: `${addProtocol(publicPath)}${file}`,
83
+ href: `${publicPath}${file}`,
90
84
  rel: "stylesheet",
91
85
  type: "text/css"
92
86
  }, index));
@@ -37,12 +37,6 @@ function collectLinks(id) {
37
37
  if (!publicPath) {
38
38
  return links;
39
39
  }
40
- var addProtocol = function(url) {
41
- if (url.startsWith("//")) {
42
- return "https:".concat(url);
43
- }
44
- return url;
45
- };
46
40
  var modules = "modules" in snapshot ? snapshot.modules : [];
47
41
  if (modules) {
48
42
  var targetModule = modules.find(function(m) {
@@ -53,7 +47,7 @@ function collectLinks(id) {
53
47
  }
54
48
  _to_consumable_array(targetModule.assets.css.sync).concat(_to_consumable_array(targetModule.assets.css.async)).forEach(function(file, index) {
55
49
  links.push(/* @__PURE__ */ _jsx("link", {
56
- href: "".concat(addProtocol(publicPath)).concat(file),
50
+ href: "".concat(publicPath).concat(file),
57
51
  rel: "stylesheet",
58
52
  type: "text/css"
59
53
  }, index));
@@ -35,12 +35,6 @@ function collectLinks(id) {
35
35
  if (!publicPath) {
36
36
  return links;
37
37
  }
38
- const addProtocol = (url) => {
39
- if (url.startsWith("//")) {
40
- return `https:${url}`;
41
- }
42
- return url;
43
- };
44
38
  const modules = "modules" in snapshot ? snapshot.modules : [];
45
39
  if (modules) {
46
40
  const targetModule = modules.find((m) => m.modulePath === loadedRemoteInfo.expose);
@@ -52,7 +46,7 @@ function collectLinks(id) {
52
46
  ...targetModule.assets.css.async
53
47
  ].forEach((file, index) => {
54
48
  links.push(/* @__PURE__ */ _jsx("link", {
55
- href: `${addProtocol(publicPath)}${file}`,
49
+ href: `${publicPath}${file}`,
56
50
  rel: "stylesheet",
57
51
  type: "text/css"
58
52
  }, index));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/modern-js",
3
- "version": "0.0.0-next-20240528115713",
3
+ "version": "0.0.0-next-20240529032552",
4
4
  "files": [
5
5
  "dist/",
6
6
  "types.d.ts",
@@ -46,10 +46,10 @@
46
46
  "@modern-js/utils": "^2.49.2",
47
47
  "@modern-js/node-bundle-require": "^2.49.2",
48
48
  "node-fetch": "~3.3.0",
49
- "@module-federation/sdk": "0.0.0-next-20240528115713",
50
- "@module-federation/enhanced": "0.0.0-next-20240528115713",
51
- "@module-federation/node": "0.0.0-next-20240528115713",
52
- "@module-federation/dts-plugin": "0.0.0-next-20240528115713"
49
+ "@module-federation/sdk": "0.0.0-next-20240529032552",
50
+ "@module-federation/enhanced": "0.0.0-next-20240529032552",
51
+ "@module-federation/node": "0.0.0-next-20240529032552",
52
+ "@module-federation/dts-plugin": "0.0.0-next-20240529032552"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@modern-js/app-tools": "^2.49.2",
@@ -57,7 +57,7 @@
57
57
  "@modern-js/runtime": "^2.49.2",
58
58
  "@modern-js/module-tools": "^2.35.0",
59
59
  "@modern-js/tsconfig": "^2.35.0",
60
- "@module-federation/manifest": "0.0.0-next-20240528115713"
60
+ "@module-federation/manifest": "0.0.0-next-20240529032552"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "react": ">=17",