@nuxt/nitro-server-nightly 4.3.2-29532038.62e1bc91 → 4.3.2-29532130.58ca720c

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.
Files changed (2) hide show
  1. package/dist/index.mjs +17 -1
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -19,7 +19,7 @@ import { isWindows } from "std-env";
19
19
  import { ImpoundPlugin } from "impound";
20
20
  import { resolveModulePath } from "exsolve";
21
21
  import { runtimeDependencies } from "nitropack/runtime/meta";
22
- var version = "4.3.2-29532038.62e1bc91";
22
+ var version = "4.3.2-29532130.58ca720c";
23
23
  function toArray(value) {
24
24
  return Array.isArray(value) ? value : [value];
25
25
  }
@@ -608,6 +608,22 @@ async function bundle(nuxt) {
608
608
  await nuxt.callHook("nitro:init", nitro);
609
609
  nuxt["~runtimeDependencies"] ||= [];
610
610
  nuxt["~runtimeDependencies"].push(...runtimeDependencies, "unhead", "@unhead/vue", "@nuxt/devalue", "unstorage", ...nitro.options.inlineDynamicImports ? ["vue", "@vue/server-renderer"] : []);
611
+ addVitePlugin({
612
+ name: "nuxt:nitro:ssr-conditions",
613
+ configEnvironment(name, config) {
614
+ if (name === "ssr") {
615
+ config.resolve ||= {};
616
+ config.resolve.conditions = [...nitro.options.exportConditions || [], "import"];
617
+ }
618
+ }
619
+ });
620
+ addVitePlugin({
621
+ name: "nuxt:nitro:vue-feature-flags",
622
+ applyToEnvironment: (environment) => environment.name === "ssr" && environment.config.isProduction,
623
+ configResolved(config) {
624
+ for (const key in config.define) if (key.startsWith("__VUE")) nitro.options.replace[key] = config.define[key];
625
+ }
626
+ });
611
627
  nitro.vfs = nuxt.vfs = nitro.vfs || nuxt.vfs || {};
612
628
  nuxt.hook("close", () => nitro.hooks.callHook("close"));
613
629
  nitro.hooks.hook("prerender:routes", (routes) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/nitro-server-nightly",
3
- "version": "4.3.2-29532038.62e1bc91",
3
+ "version": "4.3.2-29532130.58ca720c",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "dependencies": {
21
21
  "@nuxt/devalue": "^2.0.2",
22
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.2-29532038.62e1bc91",
22
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.2-29532130.58ca720c",
23
23
  "@unhead/vue": "^2.1.4",
24
24
  "@vue/shared": "^3.5.28",
25
25
  "consola": "^3.4.2",
@@ -47,11 +47,11 @@
47
47
  "vue-devtools-stub": "^0.1.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "nuxt": "npm:nuxt-nightly@4.3.2-29532038.62e1bc91"
50
+ "nuxt": "npm:nuxt-nightly@4.3.2-29532130.58ca720c"
51
51
  },
52
52
  "devDependencies": {
53
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.2-29532038.62e1bc91",
54
- "nuxt": "npm:nuxt-nightly@4.3.2-29532038.62e1bc91",
53
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.2-29532130.58ca720c",
54
+ "nuxt": "npm:nuxt-nightly@4.3.2-29532130.58ca720c",
55
55
  "obuild": "0.4.31",
56
56
  "vitest": "4.0.18"
57
57
  },