vite 7.0.0-beta.2 → 7.0.0
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 +8 -8
- package/dist/node/chunks/{dep-B_m28uIY.js → dep-BDIuIvL4.js} +1 -1
- package/dist/node/chunks/{dep-C5h9brB_.js → dep-BrEuKyO0.js} +1 -1
- package/dist/node/chunks/{dep-Bkc4tc5S.js → dep-Bsx9IwL8.js} +86 -97
- package/dist/node/chunks/{dep-BYhaRSbV.js → dep-DcjhO6Jt.js} +65 -30
- package/dist/node/chunks/{dep-CZ6VYVb7.js → dep-DnkJBLYF.js} +1 -1
- package/dist/node/chunks/{dep-8cccGkwy.js → dep-Do-w1DD4.js} +39 -39
- package/dist/node/chunks/{dep-DZ1Lk4oF.js → dep-pyXEOwQv.js} +1 -1
- package/dist/node/cli.js +5 -5
- package/dist/node/index.d.ts +27 -234
- package/dist/node/index.js +1 -1
- package/dist/node/module-runner.d.ts +2 -1
- package/dist/node/module-runner.js +7 -15
- package/package.json +8 -8
- package/types/internal/terserOptions.d.ts +11 -0
@@ -2,8 +2,8 @@ import { createRequire as ___createRequire } from 'module'; const require = ___c
|
|
2
2
|
import { __commonJS } from "./dep-Drtntmtt.js";
|
3
3
|
import { require_lib } from "./dep-DmY5m86w.js";
|
4
4
|
|
5
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.
|
6
|
-
var require_format_import_prelude = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.
|
5
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/format-import-prelude.js
|
6
|
+
var require_format_import_prelude = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/format-import-prelude.js"(exports, module) {
|
7
7
|
module.exports = function formatImportPrelude$2(layer, media, supports) {
|
8
8
|
const parts = [];
|
9
9
|
if (typeof layer !== "undefined") {
|
@@ -18,10 +18,11 @@ var require_format_import_prelude = __commonJS({ "../../node_modules/.pnpm/postc
|
|
18
18
|
} });
|
19
19
|
|
20
20
|
//#endregion
|
21
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.
|
22
|
-
var require_base64_encoded_import = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.
|
21
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/base64-encoded-import.js
|
22
|
+
var require_base64_encoded_import = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/base64-encoded-import.js"(exports, module) {
|
23
23
|
const formatImportPrelude$1 = require_format_import_prelude();
|
24
24
|
module.exports = function base64EncodedConditionalImport$1(prelude, conditions) {
|
25
|
+
if (!conditions?.length) return prelude;
|
25
26
|
conditions.reverse();
|
26
27
|
const first = conditions.pop();
|
27
28
|
let params = `${prelude} ${formatImportPrelude$1(first.layer, first.media, first.supports)}`;
|
@@ -31,18 +32,36 @@ var require_base64_encoded_import = __commonJS({ "../../node_modules/.pnpm/postc
|
|
31
32
|
} });
|
32
33
|
|
33
34
|
//#endregion
|
34
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.
|
35
|
-
var require_apply_conditions = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.
|
35
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/apply-conditions.js
|
36
|
+
var require_apply_conditions = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/apply-conditions.js"(exports, module) {
|
36
37
|
const base64EncodedConditionalImport = require_base64_encoded_import();
|
37
38
|
module.exports = function applyConditions$1(bundle, atRule) {
|
38
|
-
bundle.
|
39
|
-
|
39
|
+
const firstImportStatementIndex = bundle.findIndex((stmt) => stmt.type === "import");
|
40
|
+
const lastImportStatementIndex = bundle.findLastIndex((stmt) => stmt.type === "import");
|
41
|
+
bundle.forEach((stmt, index) => {
|
42
|
+
if (stmt.type === "charset" || stmt.type === "warning") return;
|
43
|
+
if (stmt.type === "layer" && (index < lastImportStatementIndex && stmt.conditions?.length || index > firstImportStatementIndex && index < lastImportStatementIndex)) {
|
44
|
+
stmt.type = "import";
|
45
|
+
stmt.node = stmt.node.clone({
|
46
|
+
name: "import",
|
47
|
+
params: base64EncodedConditionalImport(`'data:text/css;base64,${Buffer.from(stmt.node.toString()).toString("base64")}'`, stmt.conditions)
|
48
|
+
});
|
49
|
+
return;
|
50
|
+
}
|
51
|
+
if (!stmt.conditions?.length) return;
|
40
52
|
if (stmt.type === "import") {
|
41
53
|
stmt.node.params = base64EncodedConditionalImport(stmt.fullUri, stmt.conditions);
|
42
54
|
return;
|
43
55
|
}
|
44
|
-
|
45
|
-
|
56
|
+
let nodes;
|
57
|
+
let parent;
|
58
|
+
if (stmt.type === "layer") {
|
59
|
+
nodes = [stmt.node];
|
60
|
+
parent = stmt.node.parent;
|
61
|
+
} else {
|
62
|
+
nodes = stmt.nodes;
|
63
|
+
parent = nodes[0].parent;
|
64
|
+
}
|
46
65
|
const atRules = [];
|
47
66
|
for (const condition of stmt.conditions) {
|
48
67
|
if (typeof condition.media !== "undefined") {
|
@@ -89,8 +108,8 @@ var require_apply_conditions = __commonJS({ "../../node_modules/.pnpm/postcss-im
|
|
89
108
|
} });
|
90
109
|
|
91
110
|
//#endregion
|
92
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.
|
93
|
-
var require_apply_raws = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.
|
111
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/apply-raws.js
|
112
|
+
var require_apply_raws = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/apply-raws.js"(exports, module) {
|
94
113
|
module.exports = function applyRaws$1(bundle) {
|
95
114
|
bundle.forEach((stmt, index) => {
|
96
115
|
if (index === 0) return;
|
@@ -104,12 +123,16 @@ var require_apply_raws = __commonJS({ "../../node_modules/.pnpm/postcss-import@1
|
|
104
123
|
} });
|
105
124
|
|
106
125
|
//#endregion
|
107
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.
|
108
|
-
var require_apply_styles = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.
|
126
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/apply-styles.js
|
127
|
+
var require_apply_styles = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/apply-styles.js"(exports, module) {
|
109
128
|
module.exports = function applyStyles$1(bundle, styles) {
|
110
129
|
styles.nodes = [];
|
111
130
|
bundle.forEach((stmt) => {
|
112
|
-
if ([
|
131
|
+
if ([
|
132
|
+
"charset",
|
133
|
+
"import",
|
134
|
+
"layer"
|
135
|
+
].includes(stmt.type)) {
|
113
136
|
stmt.node.parent = void 0;
|
114
137
|
styles.append(stmt.node);
|
115
138
|
} else if (stmt.type === "nodes") stmt.nodes.forEach((node) => {
|
@@ -121,8 +144,8 @@ var require_apply_styles = __commonJS({ "../../node_modules/.pnpm/postcss-import
|
|
121
144
|
} });
|
122
145
|
|
123
146
|
//#endregion
|
124
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.
|
125
|
-
var require_data_url = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.
|
147
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/data-url.js
|
148
|
+
var require_data_url = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/data-url.js"(exports, module) {
|
126
149
|
const anyDataURLRegexp = /^data:text\/css(?:;(base64|plain))?,/i;
|
127
150
|
const base64DataURLRegexp = /^data:text\/css;base64,/i;
|
128
151
|
const plainDataURLRegexp = /^data:text\/css;plain,/i;
|
@@ -141,19 +164,21 @@ var require_data_url = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.
|
|
141
164
|
} });
|
142
165
|
|
143
166
|
//#endregion
|
144
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.
|
145
|
-
var require_parse_statements = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.
|
167
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/parse-statements.js
|
168
|
+
var require_parse_statements = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/parse-statements.js"(exports, module) {
|
146
169
|
const valueParser = require_lib();
|
147
170
|
const { stringify } = valueParser;
|
148
171
|
module.exports = function parseStatements$1(result, styles, conditions, from) {
|
149
172
|
const statements = [];
|
150
173
|
let nodes = [];
|
174
|
+
let encounteredNonImportNodes = false;
|
151
175
|
styles.each((node) => {
|
152
176
|
let stmt;
|
153
177
|
if (node.type === "atrule") {
|
154
178
|
if (node.name === "import") stmt = parseImport(result, node, conditions, from);
|
155
179
|
else if (node.name === "charset") stmt = parseCharset(result, node, conditions, from);
|
156
|
-
|
180
|
+
else if (node.name === "layer" && !encounteredNonImportNodes && !node.nodes) stmt = parseLayer(result, node, conditions, from);
|
181
|
+
} else if (node.type !== "comment") encounteredNonImportNodes = true;
|
157
182
|
if (stmt) {
|
158
183
|
if (nodes.length) {
|
159
184
|
statements.push({
|
@@ -254,11 +279,19 @@ var require_parse_statements = __commonJS({ "../../node_modules/.pnpm/postcss-im
|
|
254
279
|
});
|
255
280
|
return stmt;
|
256
281
|
}
|
282
|
+
function parseLayer(result, atRule, conditions, from) {
|
283
|
+
return {
|
284
|
+
type: "layer",
|
285
|
+
node: atRule,
|
286
|
+
conditions: [...conditions],
|
287
|
+
from
|
288
|
+
};
|
289
|
+
}
|
257
290
|
} });
|
258
291
|
|
259
292
|
//#endregion
|
260
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.
|
261
|
-
var require_process_content = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.
|
293
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/process-content.js
|
294
|
+
var require_process_content = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/process-content.js"(exports, module) {
|
262
295
|
const path$2 = require("path");
|
263
296
|
let sugarss;
|
264
297
|
module.exports = function processContent$1(result, content, filename, options, postcss) {
|
@@ -292,8 +325,8 @@ var require_process_content = __commonJS({ "../../node_modules/.pnpm/postcss-imp
|
|
292
325
|
} });
|
293
326
|
|
294
327
|
//#endregion
|
295
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.
|
296
|
-
var require_parse_styles = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.
|
328
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/parse-styles.js
|
329
|
+
var require_parse_styles = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/parse-styles.js"(exports, module) {
|
297
330
|
const path$1 = require("path");
|
298
331
|
const dataURL = require_data_url();
|
299
332
|
const parseStatements = require_parse_statements();
|
@@ -308,7 +341,7 @@ var require_parse_styles = __commonJS({ "../../node_modules/.pnpm/postcss-import
|
|
308
341
|
await resolveImportId(result, stmt, options, state, postcss);
|
309
342
|
}
|
310
343
|
let charset;
|
311
|
-
const
|
344
|
+
const beforeBundle = [];
|
312
345
|
const bundle = [];
|
313
346
|
function handleCharset(stmt) {
|
314
347
|
if (!charset) charset = stmt;
|
@@ -319,15 +352,17 @@ var require_parse_styles = __commonJS({ "../../node_modules/.pnpm/postcss-import
|
|
319
352
|
statements.forEach((stmt) => {
|
320
353
|
if (stmt.type === "charset") handleCharset(stmt);
|
321
354
|
else if (stmt.type === "import") if (stmt.children) stmt.children.forEach((child, index) => {
|
322
|
-
if (child.type === "import")
|
355
|
+
if (child.type === "import") beforeBundle.push(child);
|
356
|
+
else if (child.type === "layer") beforeBundle.push(child);
|
323
357
|
else if (child.type === "charset") handleCharset(child);
|
324
358
|
else bundle.push(child);
|
325
359
|
if (index === 0) child.parent = stmt;
|
326
360
|
});
|
327
|
-
else
|
361
|
+
else beforeBundle.push(stmt);
|
362
|
+
else if (stmt.type === "layer") beforeBundle.push(stmt);
|
328
363
|
else if (stmt.type === "nodes") bundle.push(stmt);
|
329
364
|
});
|
330
|
-
return charset ? [charset, ...
|
365
|
+
return charset ? [charset, ...beforeBundle.concat(bundle)] : beforeBundle.concat(bundle);
|
331
366
|
}
|
332
367
|
async function resolveImportId(result, stmt, options, state, postcss) {
|
333
368
|
if (dataURL.isValid(stmt.uri)) {
|
@@ -397,8 +432,8 @@ var require_parse_styles = __commonJS({ "../../node_modules/.pnpm/postcss-import
|
|
397
432
|
} });
|
398
433
|
|
399
434
|
//#endregion
|
400
|
-
//#region ../../node_modules/.pnpm/postcss-import@16.1.
|
401
|
-
var require_postcss_import = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.
|
435
|
+
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/index.js
|
436
|
+
var require_postcss_import = __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/index.js"(exports, module) {
|
402
437
|
const path = require("path");
|
403
438
|
const applyConditions = require_apply_conditions();
|
404
439
|
const applyRaws = require_apply_raws();
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
import { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults } from "./dep-
|
2
|
+
import { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults } from "./dep-Bsx9IwL8.js";
|
3
3
|
import "./dep-Ctugieod.js";
|
4
4
|
|
5
5
|
export { createServer };
|
@@ -2,8 +2,8 @@ import { createRequire as ___createRequire } from 'module'; const require = ___c
|
|
2
2
|
import { __commonJS } from "./dep-Drtntmtt.js";
|
3
3
|
import { require_lib } from "./dep-DmY5m86w.js";
|
4
4
|
|
5
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
6
|
-
var require_fs = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
5
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/fs.js
|
6
|
+
var require_fs = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/fs.js"(exports) {
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
8
8
|
exports.getFileSystem = getFileSystem;
|
9
9
|
exports.setFileSystem = setFileSystem;
|
@@ -25,8 +25,8 @@ var require_fs = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_po
|
|
25
25
|
} });
|
26
26
|
|
27
27
|
//#endregion
|
28
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
29
|
-
var require_unquote = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
28
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/unquote.js
|
29
|
+
var require_unquote = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/unquote.js"(exports) {
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
31
31
|
exports.default = unquote;
|
32
32
|
const reg = /['"]/;
|
@@ -39,8 +39,8 @@ var require_unquote = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0
|
|
39
39
|
} });
|
40
40
|
|
41
41
|
//#endregion
|
42
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
43
|
-
var require_replaceValueSymbols = __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
42
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceValueSymbols.js
|
43
|
+
var require_replaceValueSymbols = __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceValueSymbols.js"(exports, module) {
|
44
44
|
const matchValueName = /[$]?[\w-]+/g;
|
45
45
|
const replaceValueSymbols$2 = (value, replacements) => {
|
46
46
|
let matches;
|
@@ -57,8 +57,8 @@ var require_replaceValueSymbols = __commonJS({ "../../node_modules/.pnpm/icss-ut
|
|
57
57
|
} });
|
58
58
|
|
59
59
|
//#endregion
|
60
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
61
|
-
var require_replaceSymbols = __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
60
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceSymbols.js
|
61
|
+
var require_replaceSymbols = __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceSymbols.js"(exports, module) {
|
62
62
|
const replaceValueSymbols$1 = require_replaceValueSymbols();
|
63
63
|
const replaceSymbols$1 = (css, replacements) => {
|
64
64
|
css.walk((node) => {
|
@@ -71,8 +71,8 @@ var require_replaceSymbols = __commonJS({ "../../node_modules/.pnpm/icss-utils@5
|
|
71
71
|
} });
|
72
72
|
|
73
73
|
//#endregion
|
74
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
75
|
-
var require_extractICSS = __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
74
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/extractICSS.js
|
75
|
+
var require_extractICSS = __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/extractICSS.js"(exports, module) {
|
76
76
|
const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
|
77
77
|
const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
|
78
78
|
const getDeclsObject = (rule) => {
|
@@ -126,8 +126,8 @@ var require_extractICSS = __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.
|
|
126
126
|
} });
|
127
127
|
|
128
128
|
//#endregion
|
129
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
130
|
-
var require_createICSSRules = __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
129
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/createICSSRules.js
|
130
|
+
var require_createICSSRules = __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/createICSSRules.js"(exports, module) {
|
131
131
|
const createImports = (imports, postcss, mode = "rule") => {
|
132
132
|
return Object.keys(imports).map((path$2) => {
|
133
133
|
const aliases = imports[path$2];
|
@@ -171,8 +171,8 @@ var require_createICSSRules = __commonJS({ "../../node_modules/.pnpm/icss-utils@
|
|
171
171
|
} });
|
172
172
|
|
173
173
|
//#endregion
|
174
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
175
|
-
var require_src$4 = __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
174
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/index.js
|
175
|
+
var require_src$4 = __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/index.js"(exports, module) {
|
176
176
|
const replaceValueSymbols = require_replaceValueSymbols();
|
177
177
|
const replaceSymbols = require_replaceSymbols();
|
178
178
|
const extractICSS$1 = require_extractICSS();
|
@@ -186,8 +186,8 @@ var require_src$4 = __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_post
|
|
186
186
|
} });
|
187
187
|
|
188
188
|
//#endregion
|
189
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
190
|
-
var require_Parser = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
189
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/Parser.js
|
190
|
+
var require_Parser = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/Parser.js"(exports) {
|
191
191
|
Object.defineProperty(exports, "__esModule", { value: true });
|
192
192
|
exports.default = void 0;
|
193
193
|
var _icssUtils = require_src$4();
|
@@ -255,8 +255,8 @@ var require_Parser = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.
|
|
255
255
|
} });
|
256
256
|
|
257
257
|
//#endregion
|
258
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
259
|
-
var require_saveJSON = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
258
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/saveJSON.js
|
259
|
+
var require_saveJSON = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/saveJSON.js"(exports) {
|
260
260
|
Object.defineProperty(exports, "__esModule", { value: true });
|
261
261
|
exports.default = saveJSON;
|
262
262
|
var _fs$2 = require_fs();
|
@@ -915,8 +915,8 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.camelcase@4.3
|
|
915
915
|
} });
|
916
916
|
|
917
917
|
//#endregion
|
918
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
919
|
-
var require_localsConvention = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
918
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/localsConvention.js
|
919
|
+
var require_localsConvention = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/localsConvention.js"(exports) {
|
920
920
|
Object.defineProperty(exports, "__esModule", { value: true });
|
921
921
|
exports.makeLocalsConventionReducer = makeLocalsConventionReducer;
|
922
922
|
var _lodash = _interopRequireDefault$22(require_lodash());
|
@@ -956,8 +956,8 @@ var require_localsConvention = __commonJS({ "../../node_modules/.pnpm/postcss-mo
|
|
956
956
|
} });
|
957
957
|
|
958
958
|
//#endregion
|
959
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
960
|
-
var require_FileSystemLoader = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
959
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/FileSystemLoader.js
|
960
|
+
var require_FileSystemLoader = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/FileSystemLoader.js"(exports) {
|
961
961
|
Object.defineProperty(exports, "__esModule", { value: true });
|
962
962
|
exports.default = void 0;
|
963
963
|
var _postcss$1 = _interopRequireDefault$21(require("postcss"));
|
@@ -1043,12 +1043,12 @@ var require_FileSystemLoader = __commonJS({ "../../node_modules/.pnpm/postcss-mo
|
|
1043
1043
|
} });
|
1044
1044
|
|
1045
1045
|
//#endregion
|
1046
|
-
//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.
|
1047
|
-
var require_topologicalSort = __commonJS({ "../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.
|
1046
|
+
//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/topologicalSort.js
|
1047
|
+
var require_topologicalSort = __commonJS({ "../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/topologicalSort.js"(exports, module) {
|
1048
1048
|
const PERMANENT_MARKER = 2;
|
1049
1049
|
const TEMPORARY_MARKER = 1;
|
1050
1050
|
function createError(node, graph) {
|
1051
|
-
const er = new Error("Nondeterministic import's order");
|
1051
|
+
const er = /* @__PURE__ */ new Error("Nondeterministic import's order");
|
1052
1052
|
const related = graph[node];
|
1053
1053
|
const relatedNode = related.find((relatedNode$1) => graph[relatedNode$1].indexOf(node) > -1);
|
1054
1054
|
er.nodes = [node, relatedNode];
|
@@ -1085,8 +1085,8 @@ var require_topologicalSort = __commonJS({ "../../node_modules/.pnpm/postcss-mod
|
|
1085
1085
|
} });
|
1086
1086
|
|
1087
1087
|
//#endregion
|
1088
|
-
//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.
|
1089
|
-
var require_src$3 = __commonJS({ "../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.
|
1088
|
+
//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/index.js
|
1089
|
+
var require_src$3 = __commonJS({ "../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/index.js"(exports, module) {
|
1090
1090
|
const topologicalSort = require_topologicalSort();
|
1091
1091
|
const matchImports$1 = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
|
1092
1092
|
const icssImport = /^:import\((?:"([^"]+)"|'([^']+)')\)/;
|
@@ -4753,8 +4753,8 @@ var require_dist = __commonJS({ "../../node_modules/.pnpm/postcss-selector-parse
|
|
4753
4753
|
} });
|
4754
4754
|
|
4755
4755
|
//#endregion
|
4756
|
-
//#region ../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.
|
4757
|
-
var require_src$2 = __commonJS({ "../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.
|
4756
|
+
//#region ../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.6/node_modules/postcss-modules-local-by-default/src/index.js
|
4757
|
+
var require_src$2 = __commonJS({ "../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.6/node_modules/postcss-modules-local-by-default/src/index.js"(exports, module) {
|
4758
4758
|
const selectorParser$1 = require_dist();
|
4759
4759
|
const valueParser = require_lib();
|
4760
4760
|
const { extractICSS } = require_src$4();
|
@@ -5159,8 +5159,8 @@ var require_src$2 = __commonJS({ "../../node_modules/.pnpm/postcss-modules-local
|
|
5159
5159
|
} });
|
5160
5160
|
|
5161
5161
|
//#endregion
|
5162
|
-
//#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.
|
5163
|
-
var require_src$1 = __commonJS({ "../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.
|
5162
|
+
//#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.6/node_modules/postcss-modules-scope/src/index.js
|
5163
|
+
var require_src$1 = __commonJS({ "../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.6/node_modules/postcss-modules-scope/src/index.js"(exports, module) {
|
5164
5164
|
const selectorParser = require_dist();
|
5165
5165
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
5166
5166
|
function isNestedRule(rule) {
|
@@ -5349,8 +5349,8 @@ var require_string_hash = __commonJS({ "../../node_modules/.pnpm/string-hash@1.1
|
|
5349
5349
|
} });
|
5350
5350
|
|
5351
5351
|
//#endregion
|
5352
|
-
//#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.
|
5353
|
-
var require_src = __commonJS({ "../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.
|
5352
|
+
//#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.6/node_modules/postcss-modules-values/src/index.js
|
5353
|
+
var require_src = __commonJS({ "../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.6/node_modules/postcss-modules-values/src/index.js"(exports, module) {
|
5354
5354
|
const ICSSUtils = require_src$4();
|
5355
5355
|
const matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
|
5356
5356
|
const matchValueDefinition = /(?:\s+|^)([\w-]+):?(.*?)$/;
|
@@ -5438,8 +5438,8 @@ var require_src = __commonJS({ "../../node_modules/.pnpm/postcss-modules-values@
|
|
5438
5438
|
} });
|
5439
5439
|
|
5440
5440
|
//#endregion
|
5441
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
5442
|
-
var require_scoping = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
5441
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/scoping.js
|
5442
|
+
var require_scoping = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/scoping.js"(exports) {
|
5443
5443
|
Object.defineProperty(exports, "__esModule", { value: true });
|
5444
5444
|
exports.behaviours = void 0;
|
5445
5445
|
exports.getDefaultPlugins = getDefaultPlugins;
|
@@ -5503,8 +5503,8 @@ var require_scoping = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0
|
|
5503
5503
|
} });
|
5504
5504
|
|
5505
5505
|
//#endregion
|
5506
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
5507
|
-
var require_pluginFactory = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
5506
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/pluginFactory.js
|
5507
|
+
var require_pluginFactory = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/pluginFactory.js"(exports) {
|
5508
5508
|
Object.defineProperty(exports, "__esModule", { value: true });
|
5509
5509
|
exports.makePlugin = makePlugin;
|
5510
5510
|
var _postcss = _interopRequireDefault(require("postcss"));
|
@@ -5580,8 +5580,8 @@ var require_pluginFactory = __commonJS({ "../../node_modules/.pnpm/postcss-modul
|
|
5580
5580
|
} });
|
5581
5581
|
|
5582
5582
|
//#endregion
|
5583
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
5584
|
-
var require_build = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
5583
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/index.js
|
5584
|
+
var require_build = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/index.js"(exports, module) {
|
5585
5585
|
var _fs = require("fs");
|
5586
5586
|
var _fs2 = require_fs();
|
5587
5587
|
var _pluginFactory = require_pluginFactory();
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./dep-
|
2
|
+
import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./dep-Bsx9IwL8.js";
|
3
3
|
import "./dep-Ctugieod.js";
|
4
4
|
|
5
5
|
export { createBuilder, resolveBuildPlugins };
|
package/dist/node/cli.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
2
|
import { __toESM } from "./chunks/dep-Drtntmtt.js";
|
3
|
-
import { createLogger, require_picocolors, resolveConfig } from "./chunks/dep-
|
3
|
+
import { createLogger, require_picocolors, resolveConfig } from "./chunks/dep-Bsx9IwL8.js";
|
4
4
|
import { VERSION } from "./chunks/dep-Ctugieod.js";
|
5
5
|
import fs from "node:fs";
|
6
6
|
import path from "node:path";
|
@@ -568,7 +568,7 @@ const convertBase = (v) => {
|
|
568
568
|
cli.option("-c, --config <file>", `[string] use specified config file`).option("--base <path>", `[string] public base path (default: /)`, { type: [convertBase] }).option("-l, --logLevel <level>", `[string] info | warn | error | silent`).option("--clearScreen", `[boolean] allow/disable clear screen when logging`).option("--configLoader <loader>", `[string] use 'bundle' to bundle the config with esbuild, or 'runner' (experimental) to process it on the fly, or 'native' (experimental) to load using the native runtime (default: bundle)`).option("-d, --debug [feat]", `[string | boolean] show debug logs`).option("-f, --filter <filter>", `[string] filter debug logs`).option("-m, --mode <mode>", `[string] set env mode`);
|
569
569
|
cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--host [host]", `[string] specify hostname`, { type: [convertHost] }).option("--port <port>", `[number] specify port`).option("--open [path]", `[boolean | string] open browser on startup`).option("--cors", `[boolean] enable CORS`).option("--strictPort", `[boolean] exit if specified port is already in use`).option("--force", `[boolean] force the optimizer to ignore the cache and re-bundle`).action(async (root, options) => {
|
570
570
|
filterDuplicateOptions(options);
|
571
|
-
const { createServer } = await import("./chunks/dep-
|
571
|
+
const { createServer } = await import("./chunks/dep-DnkJBLYF.js");
|
572
572
|
try {
|
573
573
|
const server = await createServer({
|
574
574
|
root,
|
@@ -624,7 +624,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
|
|
624
624
|
});
|
625
625
|
cli.command("build [root]", "build for production").option("--target <target>", `[string] transpile target (default: 'baseline-widely-available')`).option("--outDir <dir>", `[string] output directory (default: dist)`).option("--assetsDir <dir>", `[string] directory under outDir to place assets in (default: assets)`).option("--assetsInlineLimit <number>", `[number] static asset base64 inline threshold in bytes (default: 4096)`).option("--ssr [entry]", `[string] build specified entry for server-side rendering`).option("--sourcemap [output]", `[boolean | "inline" | "hidden"] output source maps for build (default: false)`).option("--minify [minifier]", "[boolean | \"terser\" | \"esbuild\"] enable/disable minification, or specify minifier to use (default: esbuild)").option("--manifest [name]", `[boolean | string] emit build manifest json`).option("--ssrManifest [name]", `[boolean | string] emit ssr manifest json`).option("--emptyOutDir", `[boolean] force empty outDir when it's outside of root`).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).option("--app", `[boolean] same as \`builder: {}\``).action(async (root, options) => {
|
626
626
|
filterDuplicateOptions(options);
|
627
|
-
const { createBuilder } = await import("./chunks/dep-
|
627
|
+
const { createBuilder } = await import("./chunks/dep-pyXEOwQv.js");
|
628
628
|
const buildOptions = cleanGlobalCLIOptions(cleanBuilderCLIOptions(options));
|
629
629
|
try {
|
630
630
|
const inlineConfig = {
|
@@ -649,7 +649,7 @@ cli.command("build [root]", "build for production").option("--target <target>",
|
|
649
649
|
});
|
650
650
|
cli.command("optimize [root]", "pre-bundle dependencies (deprecated, the pre-bundle process runs automatically and does not need to be called)").option("--force", `[boolean] force the optimizer to ignore the cache and re-bundle`).action(async (root, options) => {
|
651
651
|
filterDuplicateOptions(options);
|
652
|
-
const { optimizeDeps } = await import("./chunks/dep-
|
652
|
+
const { optimizeDeps } = await import("./chunks/dep-BrEuKyO0.js");
|
653
653
|
try {
|
654
654
|
const config = await resolveConfig({
|
655
655
|
root,
|
@@ -667,7 +667,7 @@ cli.command("optimize [root]", "pre-bundle dependencies (deprecated, the pre-bun
|
|
667
667
|
});
|
668
668
|
cli.command("preview [root]", "locally preview production build").option("--host [host]", `[string] specify hostname`, { type: [convertHost] }).option("--port <port>", `[number] specify port`).option("--strictPort", `[boolean] exit if specified port is already in use`).option("--open [path]", `[boolean | string] open browser on startup`).option("--outDir <dir>", `[string] output directory (default: dist)`).action(async (root, options) => {
|
669
669
|
filterDuplicateOptions(options);
|
670
|
-
const { preview } = await import("./chunks/dep-
|
670
|
+
const { preview } = await import("./chunks/dep-BDIuIvL4.js");
|
671
671
|
try {
|
672
672
|
const server = await preview({
|
673
673
|
root,
|