vite 3.0.0-alpha.0 → 3.0.0-alpha.3
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 +23 -19
- package/dist/client/client.mjs.map +1 -1
- package/dist/node/build.d.ts +178 -0
- package/dist/node/certificate.d.ts +2 -0
- package/dist/node/chunks/{dep-a9015192.js → dep-24157481.js} +20 -20
- package/dist/node/chunks/{dep-dfbd0b0c.js → dep-5eede05c.js} +40 -37
- package/dist/node/chunks/{dep-fafc4143.js → dep-6f5ac69c.js} +1681 -1636
- package/dist/node/chunks/{dep-2d9eaf08.js → dep-b1fc04c1.js} +27 -29
- package/dist/node/chunks/{dep-63fe0f22.js → dep-da8244f4.js} +12 -6
- package/dist/node/chunks/{dep-2056ae8a.js → dep-e8ca8d40.js} +9 -3
- package/dist/node/cli.d.ts +1 -0
- package/dist/node/cli.js +43 -48
- package/dist/node/config.d.ts +240 -0
- package/dist/node/constants.d.ts +35 -0
- package/dist/node/constants.js +82 -0
- package/dist/node/env.d.ts +3 -0
- package/dist/node/http.d.ts +88 -0
- package/dist/node/index.d.ts +12 -4
- package/dist/node/index.js +37 -60
- package/dist/node/logger.d.ts +31 -0
- package/dist/node/optimizer/esbuildDepPlugin.d.ts +4 -0
- package/dist/node/optimizer/index.d.ts +154 -0
- package/dist/node/optimizer/registerMissing.d.ts +3 -0
- package/dist/node/optimizer/scan.d.ts +8 -0
- package/dist/node/packages.d.ts +27 -0
- package/dist/node/plugin.d.ts +129 -0
- package/dist/node/plugins/asset.d.ts +68 -0
- package/dist/node/plugins/assetImportMetaUrl.d.ts +13 -0
- package/dist/node/plugins/clientInjections.d.ts +7 -0
- package/dist/node/plugins/css.d.ts +86 -0
- package/dist/node/plugins/dataUri.d.ts +5 -0
- package/dist/node/plugins/define.d.ts +3 -0
- package/dist/node/plugins/dynamicImportVars.d.ts +9 -0
- package/dist/node/plugins/ensureWatch.d.ts +5 -0
- package/dist/node/plugins/esbuild.d.ts +15 -0
- package/dist/node/plugins/html.d.ts +120 -0
- package/dist/node/plugins/importAnalysis.d.ts +47 -0
- package/dist/node/plugins/importAnalysisBuild.d.ts +16 -0
- package/dist/node/plugins/importMetaGlob.d.ts +34 -0
- package/dist/node/plugins/index.d.ts +3 -0
- package/dist/node/plugins/json.d.ts +23 -0
- package/dist/node/plugins/loadFallback.d.ts +5 -0
- package/dist/node/plugins/manifest.d.ts +14 -0
- package/dist/node/plugins/metadata.d.ts +9 -0
- package/dist/node/plugins/modulePreloadPolyfill.d.ts +4 -0
- package/dist/node/plugins/optimizedDeps.d.ts +4 -0
- package/dist/node/plugins/preAlias.d.ts +5 -0
- package/dist/node/plugins/reporter.d.ts +3 -0
- package/dist/node/plugins/resolve.d.ts +39 -0
- package/dist/node/plugins/splitVendorChunk.d.ts +12 -0
- package/dist/node/plugins/ssrRequireHook.d.ts +12 -0
- package/dist/node/plugins/terser.d.ts +3 -0
- package/dist/node/plugins/wasm.d.ts +4 -0
- package/dist/node/plugins/worker.d.ts +9 -0
- package/dist/node/plugins/workerImportMetaUrl.d.ts +3 -0
- package/dist/node/preview.d.ts +33 -0
- package/dist/node/publicUtils.d.ts +11 -0
- package/dist/node/server/hmr.d.ts +39 -0
- package/dist/node/server/index.d.ts +198 -0
- package/dist/node/server/middlewares/base.d.ts +3 -0
- package/dist/node/server/middlewares/compression.d.ts +1 -0
- package/dist/node/server/middlewares/error.d.ts +8 -0
- package/dist/node/server/middlewares/indexHtml.d.ts +4 -0
- package/dist/node/server/middlewares/proxy.d.ts +20 -0
- package/dist/node/server/middlewares/spaFallback.d.ts +2 -0
- package/dist/node/server/middlewares/static.d.ts +6 -0
- package/dist/node/server/middlewares/time.d.ts +2 -0
- package/dist/node/server/middlewares/transform.d.ts +3 -0
- package/dist/node/server/moduleGraph.d.ts +55 -0
- package/dist/node/server/openBrowser.d.ts +15 -0
- package/dist/node/server/pluginContainer.d.ts +41 -0
- package/dist/node/server/searchRoot.d.ts +8 -0
- package/dist/node/server/send.d.ts +10 -0
- package/dist/node/server/sourcemap.d.ts +11 -0
- package/dist/node/server/transformRequest.d.ts +14 -0
- package/dist/node/server/ws.d.ts +55 -0
- package/dist/node/ssr/ssrExternal.d.ts +11 -0
- package/dist/node/ssr/ssrManifestPlugin.d.ts +3 -0
- package/dist/node/ssr/ssrModuleLoader.d.ts +7 -0
- package/dist/node/ssr/ssrStacktrace.d.ts +3 -0
- package/dist/node/ssr/ssrTransform.d.ts +14 -0
- package/dist/node/utils.d.ts +144 -0
- package/dist/node-cjs/publicUtils.cjs +2047 -0
- package/dist/{node/terser.js → node-cjs/terser.cjs} +0 -0
- package/index.cjs +33 -0
- package/package.json +23 -6
- package/src/client/client.ts +22 -16
- package/src/client/tsconfig.json +1 -1
- package/types/importGlob.d.ts +1 -3
|
@@ -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 { v as commonjsGlobal } from './dep-6f5ac69c.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 };
|