@nuxt/vite-builder-nightly 4.3.0-29434961.988ac15c → 4.3.0-29435909.323f27bc

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/vite-node.mjs +10 -1
  2. package/package.json +4 -4
@@ -3,7 +3,16 @@ import net from 'node:net';
3
3
  import { Buffer } from 'node:buffer';
4
4
  import { isTest } from 'std-env';
5
5
 
6
- const viteNodeOptions = JSON.parse(process.env.NUXT_VITE_NODE_OPTIONS || "{}");
6
+ function getViteNodeOptionsEnvVar() {
7
+ const envVar = process.env.NUXT_VITE_NODE_OPTIONS;
8
+ try {
9
+ return JSON.parse(envVar || "{}");
10
+ } catch (e) {
11
+ console.error("vite-node-shared: Failed to parse NUXT_VITE_NODE_OPTIONS environment variable.", e);
12
+ return {};
13
+ }
14
+ }
15
+ const viteNodeOptions = getViteNodeOptionsEnvVar();
7
16
  const pendingRequests = /* @__PURE__ */ new Map();
8
17
  let requestIdCounter = 0;
9
18
  let clientSocket;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/vite-builder-nightly",
3
- "version": "4.3.0-29434961.988ac15c",
3
+ "version": "4.3.0-29435909.323f27bc",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -25,7 +25,7 @@
25
25
  "dist"
26
26
  ],
27
27
  "devDependencies": {
28
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.0-29434961.988ac15c",
28
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.0-29435909.323f27bc",
29
29
  "nitropack": "2.12.9",
30
30
  "rolldown": "1.0.0-beta.54",
31
31
  "rollup": "4.53.4",
@@ -33,7 +33,7 @@
33
33
  "vue": "3.5.25"
34
34
  },
35
35
  "dependencies": {
36
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.0-29434961.988ac15c",
36
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.0-29435909.323f27bc",
37
37
  "@rollup/plugin-replace": "^6.0.3",
38
38
  "@vitejs/plugin-vue": "^6.0.3",
39
39
  "@vitejs/plugin-vue-jsx": "^5.1.2",
@@ -65,7 +65,7 @@
65
65
  "vue-bundle-renderer": "^2.2.0"
66
66
  },
67
67
  "peerDependencies": {
68
- "nuxt": "npm:nuxt-nightly@4.3.0-29434961.988ac15c",
68
+ "nuxt": "npm:nuxt-nightly@4.3.0-29435909.323f27bc",
69
69
  "rolldown": "^1.0.0-beta.38",
70
70
  "vue": "^3.3.4"
71
71
  },