vite 8.0.0-beta.7 → 8.0.0-beta.8
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 +4 -6
- package/dist/node/chunks/build2.js +9 -9
- package/dist/node/chunks/dist.js +497 -497
- package/dist/node/chunks/logger.js +4 -4
- package/dist/node/chunks/node.js +619 -625
- package/dist/node/index.d.ts +8 -8
- package/dist/node/module-runner.d.ts +1 -1
- package/dist/node/module-runner.js +4 -7
- package/package.json +9 -9
package/dist/client/client.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@vite/env";
|
|
2
2
|
|
|
3
|
-
//#region \0@oxc-project+runtime@0.
|
|
3
|
+
//#region \0@oxc-project+runtime@0.108.0/helpers/typeof.js
|
|
4
4
|
function _typeof(o) {
|
|
5
5
|
"@babel/helpers - typeof";
|
|
6
6
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
@@ -11,7 +11,7 @@ function _typeof(o) {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
|
-
//#region \0@oxc-project+runtime@0.
|
|
14
|
+
//#region \0@oxc-project+runtime@0.108.0/helpers/toPrimitive.js
|
|
15
15
|
function toPrimitive(t, r) {
|
|
16
16
|
if ("object" != _typeof(t) || !t) return t;
|
|
17
17
|
var e = t[Symbol.toPrimitive];
|
|
@@ -24,14 +24,14 @@ function toPrimitive(t, r) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
|
-
//#region \0@oxc-project+runtime@0.
|
|
27
|
+
//#region \0@oxc-project+runtime@0.108.0/helpers/toPropertyKey.js
|
|
28
28
|
function toPropertyKey(t) {
|
|
29
29
|
var i = toPrimitive(t, "string");
|
|
30
30
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region \0@oxc-project+runtime@0.
|
|
34
|
+
//#region \0@oxc-project+runtime@0.108.0/helpers/defineProperty.js
|
|
35
35
|
function _defineProperty(e, r, t) {
|
|
36
36
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
37
37
|
value: t,
|
|
@@ -671,8 +671,6 @@ const { HTMLElement = class {} } = globalThis;
|
|
|
671
671
|
var ErrorOverlay = class extends HTMLElement {
|
|
672
672
|
constructor(err, links = true) {
|
|
673
673
|
super();
|
|
674
|
-
_defineProperty(this, "root", void 0);
|
|
675
|
-
_defineProperty(this, "closeOnEsc", void 0);
|
|
676
674
|
this.root = this.attachShadow({ mode: "open" });
|
|
677
675
|
this.root.appendChild(createTemplate());
|
|
678
676
|
codeframeRE.lastIndex = 0;
|
|
@@ -1150,8 +1150,8 @@ var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1150
1150
|
return;
|
|
1151
1151
|
}
|
|
1152
1152
|
let tmpSymbols;
|
|
1153
|
-
let [, symbols, doubleQuotePath, singleQuotePath, global
|
|
1154
|
-
if (global
|
|
1153
|
+
let [, symbols, doubleQuotePath, singleQuotePath, global] = matches;
|
|
1154
|
+
if (global) tmpSymbols = symbols.split(/\s+/).map((s) => `global(${s})`);
|
|
1155
1155
|
else {
|
|
1156
1156
|
const importPath = doubleQuotePath || singleQuotePath;
|
|
1157
1157
|
let parent = declaration.parent;
|
|
@@ -2738,13 +2738,13 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2738
2738
|
return _setPrototypeOf(o, p);
|
|
2739
2739
|
}
|
|
2740
2740
|
var String = /* @__PURE__ */ function(_Node) {
|
|
2741
|
-
_inheritsLoose(String
|
|
2742
|
-
function String
|
|
2741
|
+
_inheritsLoose(String, _Node);
|
|
2742
|
+
function String(opts) {
|
|
2743
2743
|
var _this = _Node.call(this, opts) || this;
|
|
2744
2744
|
_this.type = _types.STRING;
|
|
2745
2745
|
return _this;
|
|
2746
2746
|
}
|
|
2747
|
-
return String
|
|
2747
|
+
return String;
|
|
2748
2748
|
}(_node["default"]);
|
|
2749
2749
|
exports["default"] = String;
|
|
2750
2750
|
module.exports = exports.default;
|
|
@@ -4498,7 +4498,7 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4498
4498
|
_proto.transformSync = function transformSync(rule, options) {
|
|
4499
4499
|
return this._runSync(rule, options).transform;
|
|
4500
4500
|
};
|
|
4501
|
-
_proto.process = function process
|
|
4501
|
+
_proto.process = function process(rule, options) {
|
|
4502
4502
|
return this._run(rule, options).then(function(result) {
|
|
4503
4503
|
return result.string || result.root.toString();
|
|
4504
4504
|
});
|
|
@@ -5206,9 +5206,9 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5206
5206
|
const localNames = getSingleLocalNamesForComposes(parsedSelector, decl.parent);
|
|
5207
5207
|
decl.value.split(",").forEach((value) => {
|
|
5208
5208
|
value.trim().split(/\s+/).forEach((className) => {
|
|
5209
|
-
const global
|
|
5210
|
-
if (global
|
|
5211
|
-
exports$1[exportedName].push(global
|
|
5209
|
+
const global = /^global\(([^)]+)\)$/.exec(className);
|
|
5210
|
+
if (global) localNames.forEach((exportedName) => {
|
|
5211
|
+
exports$1[exportedName].push(global[1]);
|
|
5212
5212
|
});
|
|
5213
5213
|
else if (hasOwnProperty.call(importedNames, className)) localNames.forEach((exportedName) => {
|
|
5214
5214
|
exports$1[exportedName].push(className);
|