vite 8.1.0-beta.0 → 8.1.1
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/client/client.mjs +7 -9
- package/dist/node/chunks/build.js +20 -30
- package/dist/node/chunks/dist.js +23 -23
- package/dist/node/chunks/logger.js +11 -4
- package/dist/node/chunks/node.js +241 -157
- package/dist/node/chunks/postcss-import.js +10 -10
- package/dist/node/index.d.ts +4 -1
- package/dist/node/module-runner.js +5 -5
- package/package.json +51 -51
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as __require, z as __commonJSMin } from "./logger.js";
|
|
2
2
|
import { t as require_lib } from "./lib.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.
|
|
3
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.16/node_modules/postcss-import/lib/format-import-prelude.js
|
|
4
4
|
var require_format_import_prelude = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
5
|
module.exports = function formatImportPrelude(layer, media, supports) {
|
|
6
6
|
const parts = [];
|
|
@@ -15,7 +15,7 @@ var require_format_import_prelude = /* @__PURE__ */ __commonJSMin(((exports, mod
|
|
|
15
15
|
};
|
|
16
16
|
}));
|
|
17
17
|
//#endregion
|
|
18
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.
|
|
18
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.16/node_modules/postcss-import/lib/base64-encoded-import.js
|
|
19
19
|
var require_base64_encoded_import = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
20
20
|
const formatImportPrelude = require_format_import_prelude();
|
|
21
21
|
module.exports = function base64EncodedConditionalImport(prelude, conditions) {
|
|
@@ -28,7 +28,7 @@ var require_base64_encoded_import = /* @__PURE__ */ __commonJSMin(((exports, mod
|
|
|
28
28
|
};
|
|
29
29
|
}));
|
|
30
30
|
//#endregion
|
|
31
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.
|
|
31
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.16/node_modules/postcss-import/lib/apply-conditions.js
|
|
32
32
|
var require_apply_conditions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
33
33
|
const base64EncodedConditionalImport = require_base64_encoded_import();
|
|
34
34
|
module.exports = function applyConditions(bundle, atRule) {
|
|
@@ -103,7 +103,7 @@ var require_apply_conditions = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
103
103
|
};
|
|
104
104
|
}));
|
|
105
105
|
//#endregion
|
|
106
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.
|
|
106
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.16/node_modules/postcss-import/lib/apply-raws.js
|
|
107
107
|
var require_apply_raws = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
108
108
|
module.exports = function applyRaws(bundle) {
|
|
109
109
|
bundle.forEach((stmt, index) => {
|
|
@@ -117,7 +117,7 @@ var require_apply_raws = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
117
117
|
};
|
|
118
118
|
}));
|
|
119
119
|
//#endregion
|
|
120
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.
|
|
120
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.16/node_modules/postcss-import/lib/apply-styles.js
|
|
121
121
|
var require_apply_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
122
122
|
module.exports = function applyStyles(bundle, styles) {
|
|
123
123
|
styles.nodes = [];
|
|
@@ -137,7 +137,7 @@ var require_apply_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
137
137
|
};
|
|
138
138
|
}));
|
|
139
139
|
//#endregion
|
|
140
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.
|
|
140
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.16/node_modules/postcss-import/lib/data-url.js
|
|
141
141
|
var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
142
142
|
const anyDataURLRegexp = /^data:text\/css(?:;(base64|plain))?,/i;
|
|
143
143
|
const base64DataURLRegexp = /^data:text\/css;base64,/i;
|
|
@@ -156,7 +156,7 @@ var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
156
156
|
};
|
|
157
157
|
}));
|
|
158
158
|
//#endregion
|
|
159
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.
|
|
159
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.16/node_modules/postcss-import/lib/parse-statements.js
|
|
160
160
|
var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
161
161
|
const valueParser = require_lib();
|
|
162
162
|
const { stringify } = valueParser;
|
|
@@ -281,7 +281,7 @@ var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
281
281
|
}
|
|
282
282
|
}));
|
|
283
283
|
//#endregion
|
|
284
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.
|
|
284
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.16/node_modules/postcss-import/lib/process-content.js
|
|
285
285
|
var require_process_content = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
286
286
|
const path$2 = __require("path");
|
|
287
287
|
let sugarss;
|
|
@@ -315,7 +315,7 @@ var require_process_content = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
315
315
|
}
|
|
316
316
|
}));
|
|
317
317
|
//#endregion
|
|
318
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.
|
|
318
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.16/node_modules/postcss-import/lib/parse-styles.js
|
|
319
319
|
var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
320
320
|
const path$1 = __require("path");
|
|
321
321
|
const dataURL = require_data_url();
|
|
@@ -418,7 +418,7 @@ var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
418
418
|
module.exports = parseStyles;
|
|
419
419
|
}));
|
|
420
420
|
//#endregion
|
|
421
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.
|
|
421
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.16/node_modules/postcss-import/index.js
|
|
422
422
|
var require_postcss_import = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
423
423
|
const path = __require("path");
|
|
424
424
|
const applyConditions = require_apply_conditions();
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1626,6 +1626,8 @@ declare class BundledDev {
|
|
|
1626
1626
|
private clients;
|
|
1627
1627
|
private invalidateCalledModules;
|
|
1628
1628
|
private debouncedFullReload;
|
|
1629
|
+
private fullReloadPending;
|
|
1630
|
+
private lastBuildError;
|
|
1629
1631
|
memoryFiles: MemoryFiles;
|
|
1630
1632
|
constructor(environment: DevEnvironment);
|
|
1631
1633
|
private get devEngine();
|
|
@@ -1639,6 +1641,7 @@ declare class BundledDev {
|
|
|
1639
1641
|
triggerBundleRegenerationIfStale(): Promise<boolean>;
|
|
1640
1642
|
triggerLazyBundling(moduleId: string | null, clientId: string | null): Promise<string | undefined>;
|
|
1641
1643
|
close(): Promise<void>;
|
|
1644
|
+
private storeOutputFiles;
|
|
1642
1645
|
private getRolldownOptions;
|
|
1643
1646
|
private handleHmrOutput;
|
|
1644
1647
|
}
|
|
@@ -2622,7 +2625,7 @@ interface FileSystemServeOptions {
|
|
|
2622
2625
|
* This will have higher priority than `allow`.
|
|
2623
2626
|
* picomatch patterns are supported.
|
|
2624
2627
|
*
|
|
2625
|
-
* @default ['.env', '.env.*', '*.{crt,pem}', '**\/.git/**']
|
|
2628
|
+
* @default ['.env', '.env.*', '*.{crt,pem,key,p12,pfx,cer,der}', '.npmrc', '.yarnrc.yml', '**\/.git/**']
|
|
2626
2629
|
*/
|
|
2627
2630
|
deny?: string[];
|
|
2628
2631
|
}
|
|
@@ -7,7 +7,7 @@ const isWindows = typeof process < "u" && process.platform === "win32";
|
|
|
7
7
|
* Undo {@link wrapId}'s `/@id/` and null byte replacements.
|
|
8
8
|
*/
|
|
9
9
|
function unwrapId(id) {
|
|
10
|
-
return id.startsWith("/@id/") ? id.slice(5).
|
|
10
|
+
return id.startsWith("/@id/") ? id.slice(5).replaceAll("__x00__", "\0") : id;
|
|
11
11
|
}
|
|
12
12
|
const windowsSlashRE = /\\/g;
|
|
13
13
|
function slash(p) {
|
|
@@ -102,7 +102,7 @@ function toWindowsPath(path) {
|
|
|
102
102
|
}
|
|
103
103
|
//#endregion
|
|
104
104
|
//#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
105
|
-
var comma = 44, chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", intToChar = new Uint8Array(64), charToInt = new Uint8Array(128);
|
|
105
|
+
var comma = 44, chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", intToChar = /* @__PURE__ */ new Uint8Array(64), charToInt = /* @__PURE__ */ new Uint8Array(128);
|
|
106
106
|
for (let i = 0; i < chars.length; i++) {
|
|
107
107
|
let c = chars.charCodeAt(i);
|
|
108
108
|
intToChar[i] = c, charToInt[c] = i;
|
|
@@ -340,7 +340,7 @@ var EvaluatedModuleNode = class {
|
|
|
340
340
|
this.idToModuleMap.clear(), this.fileToModulesMap.clear(), this.urlToIdModuleMap.clear();
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
|
-
const prefixedBuiltins = new Set([
|
|
343
|
+
const prefixedBuiltins = /* @__PURE__ */ new Set([
|
|
344
344
|
"node:sea",
|
|
345
345
|
"node:sqlite",
|
|
346
346
|
"node:test",
|
|
@@ -534,10 +534,10 @@ const {${missingBindings.join(", ")}} = pkg;
|
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
//#endregion
|
|
537
|
-
//#region ../../node_modules/.pnpm/nanoid@5.1.
|
|
537
|
+
//#region ../../node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/non-secure/index.js
|
|
538
538
|
let nanoid = (size = 21) => {
|
|
539
539
|
let id = "", i = size | 0;
|
|
540
|
-
for (; i
|
|
540
|
+
for (; i-- > 0;) id += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[Math.random() * 64 | 0];
|
|
541
541
|
return id;
|
|
542
542
|
};
|
|
543
543
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,21 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite",
|
|
3
|
-
"version": "8.1.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"author": "Evan You",
|
|
3
|
+
"version": "8.1.1",
|
|
7
4
|
"description": "Native-ESM powered web dev build tool",
|
|
8
|
-
"bin": {
|
|
9
|
-
"vite": "bin/vite.js"
|
|
10
|
-
},
|
|
11
5
|
"keywords": [
|
|
12
|
-
"
|
|
6
|
+
"build-tool",
|
|
7
|
+
"dev-server",
|
|
13
8
|
"framework",
|
|
9
|
+
"frontend",
|
|
14
10
|
"hmr",
|
|
15
|
-
"dev-server",
|
|
16
|
-
"build-tool",
|
|
17
11
|
"vite"
|
|
18
12
|
],
|
|
13
|
+
"homepage": "https://vite.dev",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/vitejs/vite/issues"
|
|
16
|
+
},
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"author": "Evan You",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/vitejs/vite.git",
|
|
22
|
+
"directory": "packages/vite"
|
|
23
|
+
},
|
|
24
|
+
"funding": "https://github.com/vitejs/vite?sponsor=1",
|
|
25
|
+
"bin": {
|
|
26
|
+
"vite": "bin/vite.js"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"bin",
|
|
30
|
+
"dist",
|
|
31
|
+
"misc/**/*.js",
|
|
32
|
+
"client.d.ts",
|
|
33
|
+
"types"
|
|
34
|
+
],
|
|
35
|
+
"type": "module",
|
|
36
|
+
"imports": {
|
|
37
|
+
"#module-sync-enabled": {
|
|
38
|
+
"module-sync": "./misc/true.js",
|
|
39
|
+
"default": "./misc/false.js"
|
|
40
|
+
},
|
|
41
|
+
"#types/*": "./types/*.d.ts",
|
|
42
|
+
"#dep-types/*": "./src/types/*.d.ts"
|
|
43
|
+
},
|
|
19
44
|
"exports": {
|
|
20
45
|
".": "./dist/node/index.js",
|
|
21
46
|
"./client": {
|
|
@@ -30,45 +55,13 @@
|
|
|
30
55
|
"./types/internal/*": null,
|
|
31
56
|
"./package.json": "./package.json"
|
|
32
57
|
},
|
|
33
|
-
"imports": {
|
|
34
|
-
"#module-sync-enabled": {
|
|
35
|
-
"module-sync": "./misc/true.js",
|
|
36
|
-
"default": "./misc/false.js"
|
|
37
|
-
},
|
|
38
|
-
"#types/*": "./types/*.d.ts",
|
|
39
|
-
"#dep-types/*": "./src/types/*.d.ts"
|
|
40
|
-
},
|
|
41
|
-
"files": [
|
|
42
|
-
"bin",
|
|
43
|
-
"dist",
|
|
44
|
-
"misc/**/*.js",
|
|
45
|
-
"client.d.ts",
|
|
46
|
-
"types"
|
|
47
|
-
],
|
|
48
|
-
"engines": {
|
|
49
|
-
"node": "^20.19.0 || >=22.12.0"
|
|
50
|
-
},
|
|
51
|
-
"repository": {
|
|
52
|
-
"type": "git",
|
|
53
|
-
"url": "git+https://github.com/vitejs/vite.git",
|
|
54
|
-
"directory": "packages/vite"
|
|
55
|
-
},
|
|
56
|
-
"bugs": {
|
|
57
|
-
"url": "https://github.com/vitejs/vite/issues"
|
|
58
|
-
},
|
|
59
|
-
"homepage": "https://vite.dev",
|
|
60
|
-
"funding": "https://github.com/vitejs/vite?sponsor=1",
|
|
61
|
-
"//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
|
|
62
58
|
"dependencies": {
|
|
63
59
|
"lightningcss": "^1.32.0",
|
|
64
60
|
"picomatch": "^4.0.4",
|
|
65
|
-
"postcss": "^8.5.
|
|
66
|
-
"rolldown": "1.1.
|
|
61
|
+
"postcss": "^8.5.16",
|
|
62
|
+
"rolldown": "~1.1.3",
|
|
67
63
|
"tinyglobby": "^0.2.17"
|
|
68
64
|
},
|
|
69
|
-
"optionalDependencies": {
|
|
70
|
-
"fsevents": "~2.3.3"
|
|
71
|
-
},
|
|
72
65
|
"devDependencies": {
|
|
73
66
|
"@babel/parser": "^7.29.7",
|
|
74
67
|
"@jridgewell/remapping": "^2.3.5",
|
|
@@ -81,10 +74,10 @@
|
|
|
81
74
|
"@types/pnpapi": "^0.0.5",
|
|
82
75
|
"@vercel/detect-agent": "^1.2.3",
|
|
83
76
|
"@vitejs/devtools": "^0.3.3",
|
|
84
|
-
"@vitest/utils": "4.1.
|
|
85
|
-
"@voidzero-dev/vite-task-client": "^0.
|
|
86
|
-
"artichokie": "^0.4.
|
|
87
|
-
"baseline-browser-mapping": "^2.10.
|
|
77
|
+
"@vitest/utils": "4.1.9",
|
|
78
|
+
"@voidzero-dev/vite-task-client": "^0.2.0",
|
|
79
|
+
"artichokie": "^0.4.4",
|
|
80
|
+
"baseline-browser-mapping": "^2.10.40",
|
|
88
81
|
"cac": "^7.0.0",
|
|
89
82
|
"chokidar": "^3.6.0",
|
|
90
83
|
"connect": "^3.7.0",
|
|
@@ -92,7 +85,7 @@
|
|
|
92
85
|
"cors": "^2.8.6",
|
|
93
86
|
"cross-spawn": "^7.0.6",
|
|
94
87
|
"dotenv-expand": "^13.0.0",
|
|
95
|
-
"es-module-lexer": "^2.
|
|
88
|
+
"es-module-lexer": "^2.2.0",
|
|
96
89
|
"esbuild": "^0.28.1",
|
|
97
90
|
"escape-html": "^1.0.3",
|
|
98
91
|
"estree-walker": "^3.0.3",
|
|
@@ -104,7 +97,7 @@
|
|
|
104
97
|
"magic-string": "^0.30.21",
|
|
105
98
|
"mlly": "^1.8.2",
|
|
106
99
|
"mrmime": "^2.0.1",
|
|
107
|
-
"nanoid": "^5.1.
|
|
100
|
+
"nanoid": "^5.1.16",
|
|
108
101
|
"obug": "^1.0.2",
|
|
109
102
|
"open": "^10.2.0",
|
|
110
103
|
"parse5": "^8.0.1",
|
|
@@ -116,7 +109,7 @@
|
|
|
116
109
|
"postcss-modules": "^6.0.1",
|
|
117
110
|
"premove": "^4.0.0",
|
|
118
111
|
"resolve.exports": "^2.0.3",
|
|
119
|
-
"rolldown-plugin-dts": "^0.
|
|
112
|
+
"rolldown-plugin-dts": "^0.26.0",
|
|
120
113
|
"rollup": "^4.59.0",
|
|
121
114
|
"rollup-plugin-license": "^3.7.1",
|
|
122
115
|
"sass": "^1.101.0",
|
|
@@ -179,6 +172,13 @@
|
|
|
179
172
|
"optional": true
|
|
180
173
|
}
|
|
181
174
|
},
|
|
175
|
+
"optionalDependencies": {
|
|
176
|
+
"fsevents": "~2.3.3"
|
|
177
|
+
},
|
|
178
|
+
"engines": {
|
|
179
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
180
|
+
},
|
|
181
|
+
"//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
|
|
182
182
|
"scripts": {
|
|
183
183
|
"dev": "premove dist && pnpm build-bundle -w",
|
|
184
184
|
"build": "premove dist && pnpm build-bundle && pnpm build-types",
|