@nuxt/bridge-edge 3.0.0-27356793.8fff48b → 3.0.0-27365509.a2e2e04

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.
@@ -3,7 +3,7 @@ import { defineNuxtModule, addPluginTemplate } from '@nuxt/kit';
3
3
  import hash from 'hash-sum';
4
4
  import { resolve } from 'pathe';
5
5
 
6
- const version = "3.0.0-27356793.8fff48b";
6
+ const version = "3.0.0-27365509.a2e2e04";
7
7
 
8
8
  const middlewareTemplate = {
9
9
  filename: "middleware.js",
@@ -10,13 +10,13 @@ import pDebounce from 'p-debounce';
10
10
  import { pathToFileURL } from 'url';
11
11
  import { existsSync } from 'fs';
12
12
  import { isExternal as isExternal$1, ExternalsDefaults } from 'externality';
13
- import { parseURL } from 'ufo';
14
13
  import { findExports } from 'mlly';
15
14
  import createResolver from 'postcss-import-resolver';
16
15
  import defu from 'defu';
17
16
  import 'module';
18
17
  import '@nuxt/kit';
19
18
  import 'node-fetch';
19
+ import 'ufo';
20
20
  import '@nuxt/nitro';
21
21
  import 'path';
22
22
  import 'unplugin';
@@ -202,10 +202,10 @@ async function transformRequest(opts, id) {
202
202
  id = resolvedPath;
203
203
  }
204
204
  }
205
- const { pathname } = parseURL(id);
206
- if (await isExternal(opts, pathname)) {
205
+ const withoutVersionQuery = id.replace(/\?v=\w+$/, "");
206
+ if (await isExternal(opts, withoutVersionQuery)) {
207
207
  return {
208
- code: `(global, exports, importMeta, ssrImport, ssrDynamicImport, ssrExportAll) => import('${pathToFileURL(pathname)}').then(r => { exports.default = r.default; ssrExportAll(r) }).catch(e => { console.error(e); throw new Error('[vite dev] Error loading external "${id}".') })`,
208
+ code: `(global, exports, importMeta, ssrImport, ssrDynamicImport, ssrExportAll) => import('${pathToFileURL(withoutVersionQuery)}').then(r => { exports.default = r.default; ssrExportAll(r) }).catch(e => { console.error(e); throw new Error('[vite dev] Error loading external "${id}".') })`,
209
209
  deps: [],
210
210
  dynamicDeps: []
211
211
  };
@@ -492,7 +492,8 @@ async function buildServer(ctx) {
492
492
  },
493
493
  cacheDir: resolve(ctx.nuxt.options.rootDir, "node_modules/.cache/vite/server"),
494
494
  resolve: {
495
- alias
495
+ alias,
496
+ mainFields: ctx.nuxt.options.dev ? ["main"] : void 0
496
497
  },
497
498
  ssr: {
498
499
  external: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/bridge-edge",
3
- "version": "3.0.0-27356793.8fff48b",
3
+ "version": "3.0.0-27365509.a2e2e04",
4
4
  "repository": "nuxt/framework",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,45 +18,45 @@
18
18
  "prepack": "unbuild"
19
19
  },
20
20
  "dependencies": {
21
- "@babel/plugin-transform-typescript": "^7.16.1",
22
- "@nuxt/kit": "npm:@nuxt/kit-edge@3.0.0-27356793.8fff48b",
23
- "@nuxt/nitro": "npm:@nuxt/nitro-edge@3.0.0-27356793.8fff48b",
21
+ "@babel/plugin-transform-typescript": "^7.16.8",
22
+ "@nuxt/kit": "npm:@nuxt/kit-edge@3.0.0-27365509.a2e2e04",
23
+ "@nuxt/nitro": "npm:@nuxt/nitro-edge@3.0.0-27365509.a2e2e04",
24
24
  "@nuxt/postcss8": "^1.1.3",
25
- "@nuxt/schema": "npm:@nuxt/schema-edge@3.0.0-27356793.8fff48b",
25
+ "@nuxt/schema": "npm:@nuxt/schema-edge@3.0.0-27365509.a2e2e04",
26
26
  "@vitejs/plugin-legacy": "^1.6.4",
27
- "@vue/composition-api": "^1.4.2",
27
+ "@vue/composition-api": "^1.4.3",
28
28
  "@vueuse/head": "^0.7.4",
29
- "acorn": "^8.6.0",
29
+ "acorn": "^8.7.0",
30
30
  "consola": "^2.15.3",
31
31
  "cookie-es": "^0.5.0",
32
32
  "defu": "^5.0.0",
33
33
  "destr": "^1.1.0",
34
34
  "enhanced-resolve": "^5.8.3",
35
- "estree-walker": "^2.0.2",
35
+ "estree-walker": "^3.0.1",
36
36
  "externality": "^0.1.5",
37
37
  "fs-extra": "^10.0.0",
38
- "globby": "^11.0.4",
38
+ "globby": "^11.1.0",
39
39
  "h3": "^0.3.8",
40
40
  "hash-sum": "^2.0.0",
41
41
  "magic-string": "^0.25.7",
42
- "mlly": "^0.3.16",
42
+ "mlly": "^0.3.17",
43
43
  "murmurhash-es": "^0.1.1",
44
44
  "node-fetch": "^3.1.0",
45
- "nuxi": "npm:nuxi-edge@3.0.0-27356793.8fff48b",
45
+ "nuxi": "npm:nuxi-edge@3.0.0-27365509.a2e2e04",
46
46
  "p-debounce": "^4.0.0",
47
47
  "pathe": "^0.2.0",
48
48
  "postcss": "^8",
49
49
  "postcss-import": "^14.0.2",
50
50
  "postcss-import-resolver": "^2.0.0",
51
- "postcss-preset-env": "^7.1.0",
51
+ "postcss-preset-env": "^7.2.0",
52
52
  "postcss-url": "^10.1.3",
53
53
  "scule": "^0.2.1",
54
54
  "semver": "^7.3.5",
55
55
  "ufo": "^0.7.9",
56
- "unplugin": "^0.2.21",
56
+ "unplugin": "^0.3.0",
57
57
  "unplugin-vue2-script-setup": "0.8.3",
58
- "vite": "^2.7.6",
59
- "vite-plugin-vue2": "^1.9.0",
58
+ "vite": "^2.7.10",
59
+ "vite-plugin-vue2": "^1.9.2",
60
60
  "vue-template-compiler": "^2.6.14"
61
61
  },
62
62
  "devDependencies": {