@nuxt/vite-builder-nightly 4.3.2-29531071.e4e4ae81 → 4.3.2-29531289.6a3bd23e
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.
- package/dist/index.mjs +5 -0
- package/dist/vite-node.d.mts +0 -1
- package/dist/vite-node.mjs +12 -0
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -47,6 +47,7 @@ const IS_CSS_RE = /\.(?:css|scss|sass|postcss|pcss|less|stylus|styl)(?:\?[^.]+)?
|
|
|
47
47
|
function isCSS(file) {
|
|
48
48
|
return IS_CSS_RE.test(file);
|
|
49
49
|
}
|
|
50
|
+
/** @since 3.9.0 */
|
|
50
51
|
function toArray(value) {
|
|
51
52
|
return Array.isArray(value) ? value : [value];
|
|
52
53
|
}
|
|
@@ -877,6 +878,10 @@ function getTranspilePatterns(envs) {
|
|
|
877
878
|
}
|
|
878
879
|
return transpile;
|
|
879
880
|
}
|
|
881
|
+
/**
|
|
882
|
+
* Get transpile patterns as strings for use with Vite's optimizeDeps.exclude
|
|
883
|
+
* This resolves functions and filters to only string patterns
|
|
884
|
+
*/
|
|
880
885
|
function getTranspileStrings(envs) {
|
|
881
886
|
const nuxt = useNuxt();
|
|
882
887
|
const patterns = [];
|
package/dist/vite-node.d.mts
CHANGED
package/dist/vite-node.mjs
CHANGED
|
@@ -20,11 +20,20 @@ const MAX_RETRY_ATTEMPTS = viteNodeOptions.maxRetryAttempts ?? 5;
|
|
|
20
20
|
const BASE_RETRY_DELAY_MS = viteNodeOptions.baseRetryDelay ?? 100;
|
|
21
21
|
const MAX_RETRY_DELAY_MS = viteNodeOptions.maxRetryDelay ?? 2e3;
|
|
22
22
|
const REQUEST_TIMEOUT_MS = viteNodeOptions.requestTimeout ?? 6e4;
|
|
23
|
+
/**
|
|
24
|
+
* Calculates exponential backoff delay with jitter.
|
|
25
|
+
* @param attempt - The current attempt number (0-based).
|
|
26
|
+
* @returns Delay in milliseconds.
|
|
27
|
+
*/
|
|
23
28
|
function calculateRetryDelay(attempt) {
|
|
24
29
|
const exponentialDelay = BASE_RETRY_DELAY_MS * Math.pow(2, attempt);
|
|
25
30
|
const jitter = Math.random() * .1 * exponentialDelay;
|
|
26
31
|
return Math.min(exponentialDelay + jitter, MAX_RETRY_DELAY_MS);
|
|
27
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Establishes or returns an existing IPC socket connection with retry logic.
|
|
35
|
+
* @returns A promise that resolves with the connected socket.
|
|
36
|
+
*/
|
|
28
37
|
function connectSocket() {
|
|
29
38
|
if (clientSocket && !clientSocket.destroyed) return Promise.resolve(clientSocket);
|
|
30
39
|
if (currentConnectPromise) return currentConnectPromise;
|
|
@@ -142,6 +151,9 @@ function connectSocket() {
|
|
|
142
151
|
currentConnectPromise = thisPromise;
|
|
143
152
|
return currentConnectPromise;
|
|
144
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* Sends a request over the IPC socket with automatic reconnection.
|
|
156
|
+
*/
|
|
145
157
|
async function sendRequest(type, payload) {
|
|
146
158
|
const requestId = requestIdCounter++;
|
|
147
159
|
let lastError;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/vite-builder-nightly",
|
|
3
|
-
"version": "4.3.2-
|
|
3
|
+
"version": "4.3.2-29531289.6a3bd23e",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.2-
|
|
25
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.2-29531289.6a3bd23e",
|
|
26
26
|
"h3": "1.15.5",
|
|
27
27
|
"h3-next": "npm:h3@2.0.1-rc.14",
|
|
28
28
|
"nitropack": "2.13.1",
|
|
29
|
-
"obuild": "0.4.
|
|
30
|
-
"rolldown": "1.0.0-rc.
|
|
31
|
-
"rollup": "4.
|
|
32
|
-
"vue": "3.5.
|
|
29
|
+
"obuild": "0.4.31",
|
|
30
|
+
"rolldown": "1.0.0-rc.5",
|
|
31
|
+
"rollup": "4.59.0",
|
|
32
|
+
"vue": "3.5.28"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.2-
|
|
35
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.2-29531289.6a3bd23e",
|
|
36
36
|
"@rollup/plugin-replace": "^6.0.3",
|
|
37
37
|
"@vitejs/plugin-vue": "^6.0.4",
|
|
38
38
|
"@vitejs/plugin-vue-jsx": "^5.1.4",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"vue-bundle-renderer": "^2.2.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"nuxt": "npm:nuxt-nightly@4.3.2-
|
|
66
|
+
"nuxt": "npm:nuxt-nightly@4.3.2-29531289.6a3bd23e",
|
|
67
67
|
"rolldown": "^1.0.0-beta.38",
|
|
68
68
|
"vue": "^3.3.4"
|
|
69
69
|
},
|