@nuxt/bridge-edge 3.0.0-28058116.064ab77 → 3.0.0-28071246.239ec24

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.
@@ -2,7 +2,7 @@ import { resolve, join, isAbsolute } from 'pathe';
2
2
  import { logger, isIgnored } from '@nuxt/kit';
3
3
  import { findExports, sanitizeFilePath } from 'mlly';
4
4
  import { joinURL, withoutLeadingSlash, withTrailingSlash } from 'ufo';
5
- import { i as isCSS, p as prepareManifests, h as hashId, u as uniq, g as generateDevSSRManifest, d as distDir, a as pkgDir } from '../shared/bridge-edge.82835a3d.mjs';
5
+ import { i as isCSS, p as prepareManifests, h as hashId, u as uniq, g as generateDevSSRManifest, d as distDir, a as pkgDir } from '../shared/bridge-edge.875bf68b.mjs';
6
6
  import createVuePlugin from '@vitejs/plugin-vue2';
7
7
  import { getPort } from 'get-port-please';
8
8
  import { defineEventHandler } from 'h3';
package/dist/module.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import '@nuxt/kit';
2
- export { m as default } from './shared/bridge-edge.82835a3d.mjs';
2
+ import 'h3';
3
+ export { m as default } from './shared/bridge-edge.875bf68b.mjs';
3
4
  import 'fs';
4
5
  import 'url';
5
6
  import 'node-fetch';
@@ -7,7 +8,6 @@ import 'fs-extra';
7
8
  import 'ufo';
8
9
  import 'pathe';
9
10
  import 'nitropack';
10
- import 'h3';
11
11
  import 'defu';
12
12
  import 'vue-bundle-renderer';
13
13
  import 'module';
@@ -1,4 +1,5 @@
1
1
  import { useNuxt, addPluginTemplate, tryImportModule, resolvePath, addTemplate, resolveAlias, addWebpackPlugin, addVitePlugin, addPlugin, extendWebpackConfig, resolveFiles, defineNuxtModule, logger, tryResolveModule, installModule, checkNuxtCompatibility } from '@nuxt/kit';
2
+ import { dynamicEventHandler, fromNodeMiddleware } from 'h3';
2
3
  import fs, { existsSync, readdirSync, statSync, promises } from 'fs';
3
4
  import { fileURLToPath, pathToFileURL } from 'url';
4
5
  import fetch from 'node-fetch';
@@ -6,7 +7,6 @@ import fse from 'fs-extra';
6
7
  import { withoutTrailingSlash, joinURL, stringifyQuery, withBase, parseURL, parseQuery, withTrailingSlash, withoutLeadingSlash } from 'ufo';
7
8
  import { dirname, join as join$1, resolve, normalize, isAbsolute, relative, parse as parse$1 } from 'pathe';
8
9
  import { createNitro, writeTypes, build, prepare, copyPublicAssets, prerender, createDevServer } from 'nitropack';
9
- import { dynamicEventHandler } from 'h3';
10
10
  import { defu } from 'defu';
11
11
  import { normalizeWebpackManifest, normalizeViteManifest } from 'vue-bundle-renderer';
12
12
  import { createRequire } from 'module';
@@ -1480,6 +1480,13 @@ const module = defineNuxtModule({
1480
1480
  nuxt.hook("modules:done", async () => {
1481
1481
  await setupNitroBridge();
1482
1482
  });
1483
+ if (!opts.vite) {
1484
+ nuxt.hook("build:compile", () => {
1485
+ nuxt.hook("server:devMiddleware", async (devMiddleware) => {
1486
+ await nuxt.callHook("server:devHandler", fromNodeMiddleware(devMiddleware));
1487
+ });
1488
+ });
1489
+ }
1483
1490
  }
1484
1491
  if (opts.app) {
1485
1492
  await setupAppBridge(opts.app);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/bridge-edge",
3
- "version": "3.0.0-28058116.064ab77",
3
+ "version": "3.0.0-28071246.239ec24",
4
4
  "repository": "nuxt/bridge",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,7 +19,7 @@
19
19
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
20
20
  "@babel/plugin-proposal-optional-chaining": "^7.21.0",
21
21
  "@babel/plugin-transform-typescript": "^7.21.3",
22
- "@nuxt/bridge-schema": "npm:@nuxt/bridge-schema-edge@3.0.0-28058116.064ab77",
22
+ "@nuxt/bridge-schema": "npm:@nuxt/bridge-schema-edge@3.0.0-28071246.239ec24",
23
23
  "@nuxt/devalue": "^2.0.2",
24
24
  "@nuxt/kit": "3.4.3",
25
25
  "@nuxt/postcss8": "^1.1.3",
@@ -31,18 +31,18 @@
31
31
  "cookie-es": "^1.0.0",
32
32
  "defu": "^6.1.2",
33
33
  "destr": "^1.2.2",
34
- "enhanced-resolve": "^5.13.0",
34
+ "enhanced-resolve": "^5.14.0",
35
35
  "escape-string-regexp": "^5.0.0",
36
36
  "estree-walker": "^3.0.3",
37
37
  "externality": "^1.0.0",
38
38
  "fs-extra": "^10.1.0",
39
39
  "get-port-please": "^3.0.1",
40
40
  "globby": "^13.1.4",
41
- "h3": "^1.6.5",
41
+ "h3": "^1.6.6",
42
42
  "hash-sum": "^2.0.0",
43
43
  "knitwork": "^1.0.0",
44
44
  "magic-string": "^0.30.0",
45
- "mlly": "^1.2.0",
45
+ "mlly": "^1.2.1",
46
46
  "nitropack": "^2.4.0",
47
47
  "node-fetch": "^3.3.1",
48
48
  "nuxi": "3.4.3",
@@ -56,9 +56,9 @@
56
56
  "postcss-preset-env": "^8.3.2",
57
57
  "postcss-url": "^10.1.3",
58
58
  "scule": "^1.0.0",
59
- "semver": "^7.5.0",
59
+ "semver": "^7.5.1",
60
60
  "std-env": "^3.3.3",
61
- "terser": "^5.17.1",
61
+ "terser": "^5.17.3",
62
62
  "ufo": "^1.1.2",
63
63
  "unctx": "^2.3.0",
64
64
  "unimport": "^3.0.6",
@@ -91,7 +91,7 @@
91
91
  "engines": {
92
92
  "node": "^14.16.0 || ^16.11.0 || >=17.0.0"
93
93
  },
94
- "packageManager": "pnpm@8.4.0",
94
+ "packageManager": "pnpm@8.5.1",
95
95
  "_name": "@nuxt/bridge",
96
96
  "scripts": {
97
97
  "build": "pnpm prepack"