vite 3.0.0-alpha.1 → 3.0.0-alpha.10
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/LICENSE.md +1 -1
- package/bin/vite.js +5 -5
- package/client.d.ts +4 -2
- package/dist/client/client.mjs +34 -20
- package/dist/client/client.mjs.map +1 -1
- package/dist/node/chunks/{dep-5cb039d6.js → dep-134b43f1.js} +37540 -37002
- package/dist/node/chunks/{dep-a9015192.js → dep-17430d09.js} +20 -20
- package/dist/node/chunks/{dep-8db43f98.js → dep-5e48add3.js} +27 -29
- package/dist/node/chunks/{dep-88b8fd2c.js → dep-6f128771.js} +40 -37
- package/dist/node/chunks/{dep-99df5764.js → dep-8176918d.js} +111 -52
- package/dist/node/chunks/{dep-2056ae8a.js → dep-e8ca8d40.js} +9 -3
- package/dist/node/cli.js +45 -48
- package/dist/node/constants.js +82 -0
- package/dist/node/index.d.ts +98 -16
- package/dist/node/index.js +37 -60
- package/dist/node-cjs/publicUtils.cjs +2040 -0
- package/index.cjs +33 -0
- package/package.json +39 -20
- package/src/client/client.ts +34 -17
- package/src/client/tsconfig.json +1 -1
- package/types/importGlob.d.ts +1 -3
- package/dist/node/terser.js +0 -32876
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import path$3 from 'path';
|
|
2
|
+
import __resolve from 'resolve';
|
|
3
|
+
import fs__default from 'fs';
|
|
4
|
+
import { l as lib } from './dep-e8ca8d40.js';
|
|
5
|
+
|
|
6
|
+
import { fileURLToPath as __cjs_fileURLToPath } from 'url';
|
|
7
|
+
import { dirname as __cjs_dirname } from 'path';
|
|
8
|
+
import { createRequire as __cjs_createRequire } from 'module';
|
|
9
|
+
|
|
10
|
+
const __filename = __cjs_fileURLToPath(import.meta.url);
|
|
11
|
+
const __dirname = __cjs_dirname(__filename);
|
|
12
|
+
const require = __cjs_createRequire(import.meta.url);
|
|
13
|
+
const __require = require;
|
|
10
14
|
function _mergeNamespaces(n, m) {
|
|
11
15
|
for (var i = 0; i < m.length; i++) {
|
|
12
16
|
var e = m[i];
|
|
@@ -19,10 +23,6 @@ function _mergeNamespaces(n, m) {
|
|
|
19
23
|
return n;
|
|
20
24
|
}
|
|
21
25
|
|
|
22
|
-
var path__default = /*#__PURE__*/_interopDefaultLegacy(path$3);
|
|
23
|
-
var resolve__default = /*#__PURE__*/_interopDefaultLegacy(resolve$2);
|
|
24
|
-
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs$1);
|
|
25
|
-
|
|
26
26
|
var joinMedia$1 = function (parentMedia, childMedia) {
|
|
27
27
|
if (!parentMedia.length && childMedia.length) return childMedia
|
|
28
28
|
if (parentMedia.length && !childMedia.length) return parentMedia
|
|
@@ -48,7 +48,7 @@ var joinLayer$1 = function (parentLayer, childLayer) {
|
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
// external tooling
|
|
51
|
-
const resolve$1 =
|
|
51
|
+
const resolve$1 = __resolve;
|
|
52
52
|
|
|
53
53
|
const moduleDirectories = ["web_modules", "node_modules"];
|
|
54
54
|
|
|
@@ -160,7 +160,7 @@ var pify$1 = pify$2.exports = function (obj, P, opts) {
|
|
|
160
160
|
pify$1.all = pify$1;
|
|
161
161
|
|
|
162
162
|
var fs = fs__default;
|
|
163
|
-
var path$2 =
|
|
163
|
+
var path$2 = path$3;
|
|
164
164
|
var pify = pify$2.exports;
|
|
165
165
|
|
|
166
166
|
var stat = pify(fs.stat);
|
|
@@ -243,7 +243,7 @@ const readCache = readCache$1.exports;
|
|
|
243
243
|
var loadContent$1 = filename => readCache(filename, "utf-8");
|
|
244
244
|
|
|
245
245
|
// builtin tooling
|
|
246
|
-
const path$1 =
|
|
246
|
+
const path$1 = path$3;
|
|
247
247
|
|
|
248
248
|
// placeholder tooling
|
|
249
249
|
let sugarss;
|
|
@@ -264,7 +264,7 @@ var processContent$1 = function processContent(
|
|
|
264
264
|
if (ext === ".sss") {
|
|
265
265
|
if (!sugarss) {
|
|
266
266
|
try {
|
|
267
|
-
sugarss =
|
|
267
|
+
sugarss = __require('sugarss');
|
|
268
268
|
} catch {} // Ignore
|
|
269
269
|
}
|
|
270
270
|
if (sugarss)
|
|
@@ -301,7 +301,7 @@ function runPostcss(postcss, content, filename, plugins, parsers, index) {
|
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
// external tooling
|
|
304
|
-
const valueParser =
|
|
304
|
+
const valueParser = lib;
|
|
305
305
|
|
|
306
306
|
// extended tooling
|
|
307
307
|
const { stringify } = valueParser;
|
|
@@ -472,7 +472,7 @@ function parseImport(result, atRule) {
|
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
// builtin tooling
|
|
475
|
-
const path =
|
|
475
|
+
const path = path$3;
|
|
476
476
|
|
|
477
477
|
// internal tooling
|
|
478
478
|
const joinMedia = joinMedia$1;
|
|
@@ -820,4 +820,4 @@ var index = /*#__PURE__*/_mergeNamespaces({
|
|
|
820
820
|
'default': postcssImport
|
|
821
821
|
}, [postcssImport]);
|
|
822
822
|
|
|
823
|
-
|
|
823
|
+
export { index as i };
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import require$$0 from 'postcss';
|
|
2
|
+
import { w as commonjsGlobal } from './dep-134b43f1.js';
|
|
3
|
+
import path$2 from 'path';
|
|
4
|
+
import require$$1 from 'crypto';
|
|
5
|
+
import fs__default from 'fs';
|
|
6
|
+
import require$$0$1 from 'util';
|
|
7
|
+
import { l as lib$1 } from './dep-e8ca8d40.js';
|
|
8
|
+
|
|
9
|
+
import { fileURLToPath as __cjs_fileURLToPath } from 'url';
|
|
10
|
+
import { dirname as __cjs_dirname } from 'path';
|
|
11
|
+
import { createRequire as __cjs_createRequire } from 'module';
|
|
12
|
+
|
|
13
|
+
const __filename = __cjs_fileURLToPath(import.meta.url);
|
|
14
|
+
const __dirname = __cjs_dirname(__filename);
|
|
15
|
+
const require = __cjs_createRequire(import.meta.url);
|
|
16
|
+
const __require = require;
|
|
13
17
|
function _mergeNamespaces(n, m) {
|
|
14
18
|
for (var i = 0; i < m.length; i++) {
|
|
15
19
|
var e = m[i];
|
|
@@ -22,12 +26,6 @@ function _mergeNamespaces(n, m) {
|
|
|
22
26
|
return n;
|
|
23
27
|
}
|
|
24
28
|
|
|
25
|
-
var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
|
|
26
|
-
var path__default = /*#__PURE__*/_interopDefaultLegacy(path$2);
|
|
27
|
-
var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1);
|
|
28
|
-
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
29
|
-
var require$$0__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$0$1);
|
|
30
|
-
|
|
31
29
|
var build$1 = {exports: {}};
|
|
32
30
|
|
|
33
31
|
/**
|
|
@@ -181,7 +179,7 @@ var deburredLetters = {
|
|
|
181
179
|
};
|
|
182
180
|
|
|
183
181
|
/** Detect free variable `global` from Node.js. */
|
|
184
|
-
var freeGlobal = typeof
|
|
182
|
+
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
185
183
|
|
|
186
184
|
/** Detect free variable `self`. */
|
|
187
185
|
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
@@ -1138,7 +1136,7 @@ function getHashDigest$1(buffer, algorithm, digestType, maxLength) {
|
|
|
1138
1136
|
hash = new BatchedHash(createMd4());
|
|
1139
1137
|
} else if (algorithm === "native-md4") {
|
|
1140
1138
|
if (typeof crypto === "undefined") {
|
|
1141
|
-
crypto = require$$
|
|
1139
|
+
crypto = require$$1;
|
|
1142
1140
|
|
|
1143
1141
|
if (BulkUpdateDecorator === undefined) {
|
|
1144
1142
|
BulkUpdateDecorator = BulkUpdateDecorator_1;
|
|
@@ -1148,7 +1146,7 @@ function getHashDigest$1(buffer, algorithm, digestType, maxLength) {
|
|
|
1148
1146
|
hash = new BulkUpdateDecorator(() => crypto.createHash("md4"), "md4");
|
|
1149
1147
|
} else {
|
|
1150
1148
|
if (typeof crypto === "undefined") {
|
|
1151
|
-
crypto = require$$
|
|
1149
|
+
crypto = require$$1;
|
|
1152
1150
|
|
|
1153
1151
|
if (BulkUpdateDecorator === undefined) {
|
|
1154
1152
|
BulkUpdateDecorator = BulkUpdateDecorator_1;
|
|
@@ -1180,7 +1178,7 @@ function getHashDigest$1(buffer, algorithm, digestType, maxLength) {
|
|
|
1180
1178
|
|
|
1181
1179
|
var getHashDigest_1 = getHashDigest$1;
|
|
1182
1180
|
|
|
1183
|
-
const path$1 =
|
|
1181
|
+
const path$1 = path$2;
|
|
1184
1182
|
const getHashDigest = getHashDigest_1;
|
|
1185
1183
|
|
|
1186
1184
|
function interpolateName$1(loaderContext, name, options = {}) {
|
|
@@ -1296,7 +1294,7 @@ function interpolateName$1(loaderContext, name, options = {}) {
|
|
|
1296
1294
|
var interpolateName_1 = interpolateName$1;
|
|
1297
1295
|
|
|
1298
1296
|
var interpolateName = interpolateName_1;
|
|
1299
|
-
var path =
|
|
1297
|
+
var path = path$2;
|
|
1300
1298
|
|
|
1301
1299
|
/**
|
|
1302
1300
|
* @param {string} pattern
|
|
@@ -1480,7 +1478,7 @@ Object.defineProperty(loader, "__esModule", {
|
|
|
1480
1478
|
value: true
|
|
1481
1479
|
});
|
|
1482
1480
|
|
|
1483
|
-
var _postcss$1 = require$$
|
|
1481
|
+
var _postcss$1 = require$$0;
|
|
1484
1482
|
|
|
1485
1483
|
var _postcss2$1 = _interopRequireDefault$5(_postcss$1);
|
|
1486
1484
|
|
|
@@ -1488,7 +1486,7 @@ var _fs$1 = fs__default;
|
|
|
1488
1486
|
|
|
1489
1487
|
var _fs2 = _interopRequireDefault$5(_fs$1);
|
|
1490
1488
|
|
|
1491
|
-
var _path =
|
|
1489
|
+
var _path = path$2;
|
|
1492
1490
|
|
|
1493
1491
|
var _path2 = _interopRequireDefault$5(_path);
|
|
1494
1492
|
|
|
@@ -3113,7 +3111,7 @@ var attribute$1 = {};
|
|
|
3113
3111
|
* For Node.js, simply re-export the core `util.deprecate` function.
|
|
3114
3112
|
*/
|
|
3115
3113
|
|
|
3116
|
-
var node = require$$
|
|
3114
|
+
var node = require$$0$1.deprecate;
|
|
3117
3115
|
|
|
3118
3116
|
(function (exports) {
|
|
3119
3117
|
|
|
@@ -6001,7 +5999,7 @@ var src$3 = {
|
|
|
6001
5999
|
};
|
|
6002
6000
|
|
|
6003
6001
|
const selectorParser$1 = dist.exports;
|
|
6004
|
-
const valueParser =
|
|
6002
|
+
const valueParser = lib$1;
|
|
6005
6003
|
const { extractICSS } = src$3;
|
|
6006
6004
|
|
|
6007
6005
|
const isSpacing = (node) => node.type === "combinator" && node.value === " ";
|
|
@@ -7315,7 +7313,7 @@ function isValidBehaviour(behaviour) {
|
|
|
7315
7313
|
return Object.keys(behaviours).map(key => behaviours[key]).indexOf(behaviour) > -1;
|
|
7316
7314
|
}
|
|
7317
7315
|
|
|
7318
|
-
var _postcss = require$$
|
|
7316
|
+
var _postcss = require$$0;
|
|
7319
7317
|
|
|
7320
7318
|
var _postcss2 = _interopRequireDefault(_postcss);
|
|
7321
7319
|
|
|
@@ -7504,4 +7502,4 @@ var index = /*#__PURE__*/_mergeNamespaces({
|
|
|
7504
7502
|
postcss: postcss
|
|
7505
7503
|
}, [build$1.exports]);
|
|
7506
7504
|
|
|
7507
|
-
|
|
7505
|
+
export { index as i };
|
|
@@ -1,35 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
import { w as commonjsGlobal } from './dep-134b43f1.js';
|
|
2
|
+
import require$$1 from 'crypto';
|
|
3
|
+
import 'fs';
|
|
4
|
+
import 'path';
|
|
5
|
+
import 'url';
|
|
6
|
+
import 'perf_hooks';
|
|
7
|
+
import 'module';
|
|
8
|
+
import 'tty';
|
|
9
|
+
import 'esbuild';
|
|
10
|
+
import 'events';
|
|
11
|
+
import 'assert';
|
|
12
|
+
import 'resolve';
|
|
13
|
+
import 'util';
|
|
14
|
+
import 'net';
|
|
15
|
+
import 'http';
|
|
16
|
+
import 'stream';
|
|
17
|
+
import 'os';
|
|
18
|
+
import 'child_process';
|
|
19
|
+
import '../constants.js';
|
|
20
|
+
import 'buffer';
|
|
21
|
+
import 'querystring';
|
|
22
|
+
import 'zlib';
|
|
23
|
+
import 'https';
|
|
24
|
+
import 'tls';
|
|
25
|
+
import 'worker_threads';
|
|
26
|
+
import 'readline';
|
|
27
|
+
|
|
28
|
+
import { fileURLToPath as __cjs_fileURLToPath } from 'url';
|
|
29
|
+
import { dirname as __cjs_dirname } from 'path';
|
|
30
|
+
import { createRequire as __cjs_createRequire } from 'module';
|
|
31
|
+
|
|
32
|
+
const __filename = __cjs_fileURLToPath(import.meta.url);
|
|
33
|
+
const __dirname = __cjs_dirname(__filename);
|
|
34
|
+
const require = __cjs_createRequire(import.meta.url);
|
|
35
|
+
const __require = require;
|
|
33
36
|
/**
|
|
34
37
|
* Node.js module for Forge.
|
|
35
38
|
*
|
|
@@ -353,7 +356,7 @@ util$1.isNodejs =
|
|
|
353
356
|
// is not available.
|
|
354
357
|
util$1.globalScope = (function() {
|
|
355
358
|
if(util$1.isNodejs) {
|
|
356
|
-
return
|
|
359
|
+
return commonjsGlobal;
|
|
357
360
|
}
|
|
358
361
|
|
|
359
362
|
return typeof self === 'undefined' ? window : self;
|
|
@@ -7506,7 +7509,7 @@ var pkcs5 = forge$i.pkcs5 = forge$i.pkcs5 || {};
|
|
|
7506
7509
|
|
|
7507
7510
|
var crypto;
|
|
7508
7511
|
if(forge$i.util.isNodejs && !forge$i.options.usePureJavaScript) {
|
|
7509
|
-
crypto = require$$
|
|
7512
|
+
crypto = require$$1;
|
|
7510
7513
|
}
|
|
7511
7514
|
|
|
7512
7515
|
/**
|
|
@@ -8286,7 +8289,7 @@ var forge$f = forge$s;
|
|
|
8286
8289
|
var _crypto$1 = null;
|
|
8287
8290
|
if(forge$f.util.isNodejs && !forge$f.options.usePureJavaScript &&
|
|
8288
8291
|
!process.versions['node-webkit']) {
|
|
8289
|
-
_crypto$1 = require$$
|
|
8292
|
+
_crypto$1 = require$$1;
|
|
8290
8293
|
}
|
|
8291
8294
|
|
|
8292
8295
|
/* PRNG API */
|
|
@@ -11508,7 +11511,7 @@ if(typeof BigInteger === 'undefined') {
|
|
|
11508
11511
|
var BigInteger = forge$8.jsbn.BigInteger;
|
|
11509
11512
|
}
|
|
11510
11513
|
|
|
11511
|
-
var _crypto = forge$8.util.isNodejs ? require$$
|
|
11514
|
+
var _crypto = forge$8.util.isNodejs ? require$$1 : null;
|
|
11512
11515
|
|
|
11513
11516
|
// shortcut for asn.1 API
|
|
11514
11517
|
var asn1$5 = forge$8.asn1;
|
|
@@ -19597,4 +19600,4 @@ function createCertificate() {
|
|
|
19597
19600
|
return privateKeyPem + certPem;
|
|
19598
19601
|
}
|
|
19599
19602
|
|
|
19600
|
-
|
|
19603
|
+
export { createCertificate };
|