@nuxt/bridge-edge 3.0.0-27486175.301f242 → 3.0.0-27487080.ec32cf9

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.
@@ -27,7 +27,7 @@ import 'unimport';
27
27
  import 'scule';
28
28
  import 'unplugin-vue2-script-setup/nuxt';
29
29
 
30
- const version = "3.0.0-27486175.301f242";
30
+ const version = "3.0.0-27487080.ec32cf9";
31
31
 
32
32
  const middlewareTemplate = {
33
33
  filename: "middleware.js",
@@ -188,7 +188,7 @@ async function warmupViteServer(server, entries) {
188
188
  const warmedUrls = /* @__PURE__ */ new Set();
189
189
  const warmup = async (url) => {
190
190
  if (warmedUrls.has(url)) {
191
- return void 0;
191
+ return;
192
192
  }
193
193
  warmedUrls.add(url);
194
194
  try {
@@ -196,8 +196,9 @@ async function warmupViteServer(server, entries) {
196
196
  } catch (e) {
197
197
  logger.debug("Warmup for %s failed with: %s", url, e);
198
198
  }
199
- const deps = Array.from(server.moduleGraph.urlToModuleMap.get(url)?.importedModules || []);
200
- await Promise.all(deps.map((m) => warmup(m.url)));
199
+ const mod = await server.moduleGraph.getModuleByUrl(url);
200
+ const deps = Array.from(mod?.importedModules || []);
201
+ await Promise.all(deps.map((m) => warmup(m.url.replace("/@id/__x00__", "\0"))));
201
202
  };
202
203
  await Promise.all(entries.map((entry) => warmup(entry)));
203
204
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/bridge-edge",
3
- "version": "3.0.0-27486175.301f242",
3
+ "version": "3.0.0-27487080.ec32cf9",
4
4
  "repository": "nuxt/framework",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -21,10 +21,10 @@
21
21
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
22
22
  "@babel/plugin-proposal-optional-chaining": "^7.16.7",
23
23
  "@babel/plugin-transform-typescript": "^7.16.8",
24
- "@nuxt/kit": "npm:@nuxt/kit-edge@3.0.0-27486175.301f242",
25
- "@nuxt/nitro": "npm:@nuxt/nitro-edge@3.0.0-27486175.301f242",
24
+ "@nuxt/kit": "npm:@nuxt/kit-edge@3.0.0-27487080.ec32cf9",
25
+ "@nuxt/nitro": "npm:@nuxt/nitro-edge@3.0.0-27487080.ec32cf9",
26
26
  "@nuxt/postcss8": "^1.1.3",
27
- "@nuxt/schema": "npm:@nuxt/schema-edge@3.0.0-27486175.301f242",
27
+ "@nuxt/schema": "npm:@nuxt/schema-edge@3.0.0-27487080.ec32cf9",
28
28
  "@vitejs/plugin-legacy": "^1.8.0",
29
29
  "@vue/composition-api": "^1.4.9",
30
30
  "@vueuse/head": "^0.7.5",
@@ -45,7 +45,7 @@
45
45
  "mlly": "^0.5.1",
46
46
  "murmurhash-es": "^0.1.1",
47
47
  "node-fetch": "^3.2.3",
48
- "nuxi": "npm:nuxi-edge@3.0.0-27486175.301f242",
48
+ "nuxi": "npm:nuxi-edge@3.0.0-27487080.ec32cf9",
49
49
  "ohash": "^0.1.0",
50
50
  "pathe": "^0.2.0",
51
51
  "perfect-debounce": "^0.1.3",