vite 6.0.0-alpha.15 → 6.0.0-alpha.16
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/node/chunks/{dep-C8uvdLOV.js → dep-5iBxKK6m.js} +12866 -6441
- package/dist/node/chunks/{dep-cpG-cLQR.js → dep-C0ketC3j.js} +1 -1
- package/dist/node/chunks/{dep-BH5K5NVS.js → dep-C1KLoAiP.js} +1 -1
- package/dist/node/cli.js +53 -35
- package/dist/node/constants.js +28 -1
- package/dist/node/index.d.ts +1926 -1913
- package/dist/node/index.js +6 -7
- package/dist/node-cjs/publicUtils.cjs +17 -0
- package/package.json +2 -2
- package/dist/node/chunks/dep-B2yOf3Tu.js +0 -6385
package/dist/node/index.js
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
export { parseAst, parseAstAsync } from 'rollup/parseAst';
|
2
|
-
|
2
|
+
import { i as isInNodeModules, a as arraify } from './chunks/dep-5iBxKK6m.js';
|
3
|
+
export { B as BuildEnvironment, D as DevEnvironment, S as ServerHMRConnector, b as build, h as buildErrorMessage, e as createBuilder, w as createFilter, A as createLogger, j as createNodeDevEnvironment, c as createServer, m as createServerModuleRunner, x as createWeakData, d as defineConfig, k as fetchModule, f as formatPostcssSourceMap, F as isFileLoadingAllowed, E as isFileServingAllowed, l as loadConfigFromFile, G as loadEnv, v as mergeAlias, u as mergeConfig, n as moduleRunnerTransform, q as normalizePath, o as optimizeDeps, g as preprocessCSS, p as preview, r as resolveConfig, H as resolveEnvPrefix, y as rollupVersion, C as searchForWorkspaceRoot, z as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-5iBxKK6m.js';
|
3
4
|
export { VERSION as version } from './constants.js';
|
4
5
|
export { version as esbuildVersion } from 'esbuild';
|
5
|
-
import { i as isInNodeModules, a as arraify } from './chunks/dep-B2yOf3Tu.js';
|
6
|
-
export { c as createFilter, d as createLogger, b as mergeAlias, m as mergeConfig, n as normalizePath, r as rollupVersion } from './chunks/dep-B2yOf3Tu.js';
|
7
6
|
import 'node:fs';
|
8
7
|
import 'node:fs/promises';
|
9
8
|
import 'node:path';
|
@@ -11,6 +10,7 @@ import 'node:url';
|
|
11
10
|
import 'node:util';
|
12
11
|
import 'node:perf_hooks';
|
13
12
|
import 'node:module';
|
13
|
+
import 'tty';
|
14
14
|
import 'path';
|
15
15
|
import 'fs';
|
16
16
|
import 'events';
|
@@ -18,7 +18,6 @@ import 'assert';
|
|
18
18
|
import 'node:child_process';
|
19
19
|
import 'node:http';
|
20
20
|
import 'node:https';
|
21
|
-
import 'tty';
|
22
21
|
import 'util';
|
23
22
|
import 'net';
|
24
23
|
import 'url';
|
@@ -26,11 +25,13 @@ import 'http';
|
|
26
25
|
import 'stream';
|
27
26
|
import 'os';
|
28
27
|
import 'child_process';
|
28
|
+
import 'node:os';
|
29
|
+
import 'node:crypto';
|
30
|
+
import 'node:dns';
|
29
31
|
import 'vite/module-runner';
|
30
32
|
import 'module';
|
31
33
|
import 'node:assert';
|
32
34
|
import 'node:v8';
|
33
|
-
import 'node:os';
|
34
35
|
import 'node:worker_threads';
|
35
36
|
import 'node:events';
|
36
37
|
import 'crypto';
|
@@ -42,8 +43,6 @@ import 'buffer';
|
|
42
43
|
import 'https';
|
43
44
|
import 'tls';
|
44
45
|
import 'node:zlib';
|
45
|
-
import 'node:crypto';
|
46
|
-
import 'node:dns';
|
47
46
|
|
48
47
|
// This file will be built for both ESM and CJS. Avoid relying on other modules as possible.
|
49
48
|
// copy from constants.ts
|
@@ -3591,6 +3591,22 @@ function normalizeSingleAlias({ find, replacement, customResolver, }) {
|
|
3591
3591
|
}
|
3592
3592
|
return alias;
|
3593
3593
|
}
|
3594
|
+
/**
|
3595
|
+
* Creates a function that hides the complexities of a WeakMap with an initial value
|
3596
|
+
* to implement object metadata. Used by plugins to implement cross hooks per
|
3597
|
+
* environment metadata
|
3598
|
+
*/
|
3599
|
+
function createWeakData(initial) {
|
3600
|
+
const cache = new WeakMap();
|
3601
|
+
return function (key) {
|
3602
|
+
let data = cache.get(key);
|
3603
|
+
if (!data) {
|
3604
|
+
data = initial(key);
|
3605
|
+
cache.set(key, data);
|
3606
|
+
}
|
3607
|
+
return data;
|
3608
|
+
};
|
3609
|
+
}
|
3594
3610
|
|
3595
3611
|
// This file will be built for both ESM and CJS. Avoid relying on other modules as possible.
|
3596
3612
|
// copy from constants.ts
|
@@ -6239,6 +6255,7 @@ function resolveEnvPrefix({ envPrefix = 'VITE_', }) {
|
|
6239
6255
|
exports.esbuildVersion = esbuild.version;
|
6240
6256
|
exports.createFilter = createFilter;
|
6241
6257
|
exports.createLogger = createLogger;
|
6258
|
+
exports.createWeakData = createWeakData;
|
6242
6259
|
exports.isCSSRequest = isCSSRequest;
|
6243
6260
|
exports.isFileLoadingAllowed = isFileLoadingAllowed;
|
6244
6261
|
exports.isFileServingAllowed = isFileServingAllowed;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vite",
|
3
|
-
"version": "6.0.0-alpha.
|
3
|
+
"version": "6.0.0-alpha.16",
|
4
4
|
"type": "module",
|
5
5
|
"license": "MIT",
|
6
6
|
"author": "Evan You",
|
@@ -182,7 +182,7 @@
|
|
182
182
|
"build-types-temp": "tsc --emitDeclarationOnly --outDir temp -p src/node",
|
183
183
|
"build-types-roll": "rollup --config rollup.dts.config.ts --configPlugin typescript && rimraf temp",
|
184
184
|
"build-types-check": "tsc --project tsconfig.check.json",
|
185
|
-
"typecheck": "tsc --noEmit",
|
185
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p src/node",
|
186
186
|
"lint": "eslint --cache --ext .ts src/**",
|
187
187
|
"format": "prettier --write --cache --parser typescript \"src/**/*.ts\""
|
188
188
|
}
|