vite 8.0.0-beta.0 → 8.0.0-beta.2
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/README.md +1 -1
- package/dist/client/client.mjs +39 -5
- package/dist/node/chunks/build.js +1 -1
- package/dist/node/chunks/build2.js +787 -787
- package/dist/node/chunks/lib.js +7 -7
- package/dist/node/chunks/node.js +12989 -12422
- package/dist/node/chunks/optimizer.js +1 -1
- package/dist/node/chunks/postcss-import.js +15 -15
- package/dist/node/chunks/server.js +1 -1
- package/dist/node/cli.js +3 -2
- package/dist/node/index.d.ts +73 -41
- package/dist/node/index.js +1 -1
- package/package.json +11 -11
- package/types/customEvent.d.ts +2 -0
- package/types/hmrPayload.d.ts +6 -0
package/dist/node/chunks/lib.js
CHANGED
|
@@ -13,7 +13,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
13
13
|
var star = "*".charCodeAt(0);
|
|
14
14
|
var uLower = "u".charCodeAt(0);
|
|
15
15
|
var uUpper = "U".charCodeAt(0);
|
|
16
|
-
var plus
|
|
16
|
+
var plus = "+".charCodeAt(0);
|
|
17
17
|
var isUnicodeRange = /^[a-f0-9?-]+$/i;
|
|
18
18
|
module.exports = function(input) {
|
|
19
19
|
var tokens = [];
|
|
@@ -209,7 +209,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
209
209
|
} while (next < max && !(code <= 32 || code === singleQuote || code === doubleQuote || code === comma || code === colon || code === slash || code === openParentheses || code === star && parent && parent.type === "function" && parent.value === "calc" || code === slash && parent.type === "function" && parent.value === "calc" || code === closeParentheses && balanced));
|
|
210
210
|
token = value.slice(pos, next);
|
|
211
211
|
if (openParentheses === code) name = token;
|
|
212
|
-
else if ((uLower === token.charCodeAt(0) || uUpper === token.charCodeAt(0)) && plus
|
|
212
|
+
else if ((uLower === token.charCodeAt(0) || uUpper === token.charCodeAt(0)) && plus === token.charCodeAt(1) && isUnicodeRange.test(token.slice(2))) tokens.push({
|
|
213
213
|
type: "unicode-range",
|
|
214
214
|
sourceIndex: pos,
|
|
215
215
|
sourceEndIndex: next,
|
|
@@ -234,12 +234,12 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
234
234
|
//#endregion
|
|
235
235
|
//#region ../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/walk.js
|
|
236
236
|
var require_walk = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
237
|
-
module.exports = function walk
|
|
237
|
+
module.exports = function walk(nodes, cb, bubble) {
|
|
238
238
|
var i, max, node, result;
|
|
239
239
|
for (i = 0, max = nodes.length; i < max; i += 1) {
|
|
240
240
|
node = nodes[i];
|
|
241
241
|
if (!bubble) result = cb(node, i, nodes);
|
|
242
|
-
if (result !== false && node.type === "function" && Array.isArray(node.nodes)) walk
|
|
242
|
+
if (result !== false && node.type === "function" && Array.isArray(node.nodes)) walk(node.nodes, cb, bubble);
|
|
243
243
|
if (bubble) cb(node, i, nodes);
|
|
244
244
|
}
|
|
245
245
|
};
|
|
@@ -261,13 +261,13 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
261
261
|
} else if (type === "comment") return "/*" + value + (node.unclosed ? "" : "*/");
|
|
262
262
|
else if (type === "div") return (node.before || "") + value + (node.after || "");
|
|
263
263
|
else if (Array.isArray(node.nodes)) {
|
|
264
|
-
buf = stringify
|
|
264
|
+
buf = stringify(node.nodes, custom);
|
|
265
265
|
if (type !== "function") return buf;
|
|
266
266
|
return value + "(" + (node.before || "") + buf + (node.after || "") + (node.unclosed ? "" : ")");
|
|
267
267
|
}
|
|
268
268
|
return value;
|
|
269
269
|
}
|
|
270
|
-
function stringify
|
|
270
|
+
function stringify(nodes, custom) {
|
|
271
271
|
var result, i;
|
|
272
272
|
if (Array.isArray(nodes)) {
|
|
273
273
|
result = "";
|
|
@@ -276,7 +276,7 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
276
276
|
}
|
|
277
277
|
return stringifyNode(nodes, custom);
|
|
278
278
|
}
|
|
279
|
-
module.exports = stringify
|
|
279
|
+
module.exports = stringify;
|
|
280
280
|
}));
|
|
281
281
|
|
|
282
282
|
//#endregion
|