vite 6.0.1 → 6.0.2
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.
Potentially problematic release.
This version of vite might be problematic. Click here for more details.
- package/dist/node/chunks/{dep-BcnkIxro.js → dep-A4nAWF7x.js} +73 -69
- package/dist/node/chunks/{dep-ab_8SKHY.js → dep-CoVxupJ6.js} +1 -1
- package/dist/node/chunks/{dep-BnwAUvl5.js → dep-DFNV1bxH.js} +1 -1
- package/dist/node/cli.js +5 -5
- package/dist/node/index.d.ts +5 -3
- package/dist/node/index.js +2 -2
- package/package.json +2 -2
@@ -7,7 +7,7 @@ import { promisify as promisify$4, format as format$2, inspect, stripVTControlCh
|
|
7
7
|
import { performance } from 'node:perf_hooks';
|
8
8
|
import require$$0$5, { createRequire as createRequire$1, builtinModules } from 'node:module';
|
9
9
|
import esbuild, { transform as transform$1, formatMessages, build as build$b } from 'esbuild';
|
10
|
-
import { CLIENT_ENTRY, OPTIMIZABLE_ENTRY_RE, wildcardHosts, loopbackHosts, FS_PREFIX, CLIENT_PUBLIC_PATH, ENV_PUBLIC_PATH, DEFAULT_ASSETS_INLINE_LIMIT, ENV_ENTRY, SPECIAL_QUERY_RE, DEP_VERSION_RE, DEV_PROD_CONDITION, JS_TYPES_RE, KNOWN_ASSET_TYPES, CSS_LANGS_RE, METADATA_FILENAME, ESBUILD_MODULES_TARGET, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, VITE_PACKAGE_DIR, DEFAULT_DEV_PORT, CLIENT_DIR, VERSION, ROLLUP_HOOKS, DEFAULT_ASSETS_RE, DEFAULT_CONFIG_FILES,
|
10
|
+
import { CLIENT_ENTRY, OPTIMIZABLE_ENTRY_RE, wildcardHosts, loopbackHosts, FS_PREFIX, CLIENT_PUBLIC_PATH, ENV_PUBLIC_PATH, DEFAULT_ASSETS_INLINE_LIMIT, ENV_ENTRY, SPECIAL_QUERY_RE, DEP_VERSION_RE, DEV_PROD_CONDITION, JS_TYPES_RE, KNOWN_ASSET_TYPES, CSS_LANGS_RE, METADATA_FILENAME, ESBUILD_MODULES_TARGET, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, VITE_PACKAGE_DIR, DEFAULT_DEV_PORT, CLIENT_DIR, VERSION, ROLLUP_HOOKS, DEFAULT_PREVIEW_PORT, DEFAULT_ASSETS_RE, DEFAULT_CONFIG_FILES, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_SERVER_MAIN_FIELDS, DEFAULT_CLIENT_CONDITIONS, DEFAULT_SERVER_CONDITIONS } from '../constants.js';
|
11
11
|
import require$$0$2, { posix, win32, isAbsolute, resolve as resolve$3, relative as relative$1, basename as basename$1, extname, dirname as dirname$1, join, sep } from 'path';
|
12
12
|
import require$$0$3, { existsSync, readFileSync, statSync, readdirSync } from 'fs';
|
13
13
|
import childProcess$2, { exec, execFile, execSync } from 'node:child_process';
|
@@ -15936,7 +15936,7 @@ function resolvePlugin(resolveOptions) {
|
|
15936
15936
|
}
|
15937
15937
|
if (isBuiltin(id)) {
|
15938
15938
|
if (currentEnvironmentOptions.consumer === "server") {
|
15939
|
-
if (options.noExternal === true && // if both noExternal and external are true, noExternal will take the higher priority and bundle it.
|
15939
|
+
if (options.enableBuiltinNoExternalCheck && options.noExternal === true && // if both noExternal and external are true, noExternal will take the higher priority and bundle it.
|
15940
15940
|
// only if the id is explicitly listed in external, we will externalize it and skip this error.
|
15941
15941
|
(options.external === true || !options.external.includes(id))) {
|
15942
15942
|
let message = `Cannot bundle Node.js built-in "${id}"`;
|
@@ -47991,7 +47991,10 @@ function cssPostPlugin(config) {
|
|
47991
47991
|
this.emitFile({
|
47992
47992
|
name: getCssBundleName(),
|
47993
47993
|
type: "asset",
|
47994
|
-
source: extractedCss
|
47994
|
+
source: extractedCss,
|
47995
|
+
// this file is an implicit entry point, use `style.css` as the original file name
|
47996
|
+
// this name is also used as a key in the manifest
|
47997
|
+
originalFileName: "style.css"
|
47995
47998
|
});
|
47996
47999
|
}
|
47997
48000
|
}
|
@@ -48429,8 +48432,8 @@ function createCachedImport(imp) {
|
|
48429
48432
|
return cached;
|
48430
48433
|
};
|
48431
48434
|
}
|
48432
|
-
const importPostcssImport = createCachedImport(() => import('./dep-
|
48433
|
-
const importPostcssModules = createCachedImport(() => import('./dep-
|
48435
|
+
const importPostcssImport = createCachedImport(() => import('./dep-DFNV1bxH.js').then(function (n) { return n.i; }));
|
48436
|
+
const importPostcssModules = createCachedImport(() => import('./dep-CoVxupJ6.js').then(function (n) { return n.i; }));
|
48434
48437
|
const importPostcss = createCachedImport(() => import('postcss'));
|
48435
48438
|
const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
|
48436
48439
|
let alwaysFakeWorkerWorkerControllerCache;
|
@@ -49447,48 +49450,60 @@ async function compileLightningCSS(id, src, environment, urlReplacer) {
|
|
49447
49450
|
const deps = /* @__PURE__ */ new Set();
|
49448
49451
|
const filename = cleanUrl(path$d.relative(config.root, id));
|
49449
49452
|
const toAbsolute = (filePath) => path$d.isAbsolute(filePath) ? filePath : path$d.join(config.root, filePath);
|
49450
|
-
|
49451
|
-
|
49452
|
-
|
49453
|
-
|
49454
|
-
|
49455
|
-
|
49456
|
-
|
49457
|
-
|
49458
|
-
|
49459
|
-
|
49460
|
-
|
49461
|
-
|
49462
|
-
|
49463
|
-
|
49464
|
-
|
49465
|
-
|
49466
|
-
|
49467
|
-
|
49468
|
-
|
49469
|
-
|
49470
|
-
|
49471
|
-
|
49472
|
-
|
49473
|
-
|
49474
|
-
|
49475
|
-
|
49476
|
-
|
49477
|
-
|
49478
|
-
|
49479
|
-
|
49480
|
-
|
49481
|
-
|
49482
|
-
|
49453
|
+
let res;
|
49454
|
+
try {
|
49455
|
+
res = styleAttrRE.test(id) ? (await importLightningCSS()).transformStyleAttribute({
|
49456
|
+
filename,
|
49457
|
+
code: Buffer.from(src),
|
49458
|
+
targets: config.css?.lightningcss?.targets,
|
49459
|
+
minify: config.isProduction && !!config.build.cssMinify,
|
49460
|
+
analyzeDependencies: true
|
49461
|
+
}) : await (await importLightningCSS()).bundleAsync({
|
49462
|
+
...config.css?.lightningcss,
|
49463
|
+
filename,
|
49464
|
+
resolver: {
|
49465
|
+
read(filePath) {
|
49466
|
+
if (filePath === filename) {
|
49467
|
+
return src;
|
49468
|
+
}
|
49469
|
+
if (!filePath.endsWith(".css")) {
|
49470
|
+
return src;
|
49471
|
+
}
|
49472
|
+
return fs__default.readFileSync(toAbsolute(filePath), "utf-8");
|
49473
|
+
},
|
49474
|
+
async resolve(id2, from) {
|
49475
|
+
const publicFile = checkPublicFile(
|
49476
|
+
id2,
|
49477
|
+
environment.getTopLevelConfig()
|
49478
|
+
);
|
49479
|
+
if (publicFile) {
|
49480
|
+
return publicFile;
|
49481
|
+
}
|
49482
|
+
const resolved = await getAtImportResolvers(
|
49483
|
+
environment.getTopLevelConfig()
|
49484
|
+
).css(environment, id2, toAbsolute(from));
|
49485
|
+
if (resolved) {
|
49486
|
+
deps.add(resolved);
|
49487
|
+
return resolved;
|
49488
|
+
}
|
49489
|
+
return id2;
|
49483
49490
|
}
|
49484
|
-
|
49485
|
-
|
49486
|
-
|
49487
|
-
|
49488
|
-
|
49489
|
-
|
49490
|
-
|
49491
|
-
|
49491
|
+
},
|
49492
|
+
minify: config.isProduction && !!config.build.cssMinify,
|
49493
|
+
sourceMap: config.command === "build" ? !!config.build.sourcemap : config.css?.devSourcemap,
|
49494
|
+
analyzeDependencies: true,
|
49495
|
+
cssModules: cssModuleRE.test(id) ? config.css?.lightningcss?.cssModules ?? true : void 0
|
49496
|
+
});
|
49497
|
+
} catch (e) {
|
49498
|
+
e.message = `[lightningcss] ${e.message}`;
|
49499
|
+
e.loc = {
|
49500
|
+
file: toAbsolute(e.fileName),
|
49501
|
+
line: e.loc.line,
|
49502
|
+
column: e.loc.column - 1
|
49503
|
+
// 1-based
|
49504
|
+
};
|
49505
|
+
throw e;
|
49506
|
+
}
|
49492
49507
|
let css = decoder.decode(res.code);
|
49493
49508
|
for (const dep of res.dependencies) {
|
49494
49509
|
switch (dep.type) {
|
@@ -49497,7 +49512,6 @@ async function compileLightningCSS(id, src, environment, urlReplacer) {
|
|
49497
49512
|
css = css.replace(dep.placeholder, () => dep.url);
|
49498
49513
|
break;
|
49499
49514
|
}
|
49500
|
-
deps.add(dep.url);
|
49501
49515
|
if (urlReplacer) {
|
49502
49516
|
const replaceUrl = await urlReplacer(
|
49503
49517
|
dep.url,
|
@@ -50263,7 +50277,7 @@ const buildEnvironmentOptionsDefaults = Object.freeze({
|
|
50263
50277
|
watch: null
|
50264
50278
|
// createEnvironment
|
50265
50279
|
});
|
50266
|
-
function resolveBuildEnvironmentOptions(raw, logger, consumer
|
50280
|
+
function resolveBuildEnvironmentOptions(raw, logger, consumer) {
|
50267
50281
|
const deprecatedPolyfillModulePreload = raw?.polyfillModulePreload;
|
50268
50282
|
const { polyfillModulePreload, ...rest } = raw;
|
50269
50283
|
raw = rest;
|
@@ -50307,17 +50321,6 @@ function resolveBuildEnvironmentOptions(raw, logger, consumer, isSsrTargetWebwor
|
|
50307
50321
|
...merged.modulePreload
|
50308
50322
|
}
|
50309
50323
|
};
|
50310
|
-
if (isSsrTargetWebworkerEnvironment) {
|
50311
|
-
resolved.rollupOptions ??= {};
|
50312
|
-
resolved.rollupOptions.output ??= {};
|
50313
|
-
const output = resolved.rollupOptions.output;
|
50314
|
-
for (const out of arraify(output)) {
|
50315
|
-
out.entryFileNames ??= `[name].js`;
|
50316
|
-
out.chunkFileNames ??= `[name]-[hash].js`;
|
50317
|
-
const input = resolved.rollupOptions.input;
|
50318
|
-
out.inlineDynamicImports ??= !input || typeof input === "string" || Object.keys(input).length === 1;
|
50319
|
-
}
|
50320
|
-
}
|
50321
50324
|
return resolved;
|
50322
50325
|
}
|
50323
50326
|
async function resolveBuildPlugins(config) {
|
@@ -50455,6 +50458,7 @@ ${stackOnly}`;
|
|
50455
50458
|
clearLine();
|
50456
50459
|
logger.error(e.message, { error: e });
|
50457
50460
|
};
|
50461
|
+
const isSsrTargetWebworkerEnvironment = environment.name === "ssr" && environment.getTopLevelConfig().ssr?.target === "webworker";
|
50458
50462
|
let bundle;
|
50459
50463
|
let startTime;
|
50460
50464
|
try {
|
@@ -50477,7 +50481,7 @@ ${stackOnly}`;
|
|
50477
50481
|
);
|
50478
50482
|
}
|
50479
50483
|
const format = output.format || "es";
|
50480
|
-
const jsExt =
|
50484
|
+
const jsExt = ssr && !isSsrTargetWebworkerEnvironment || libOptions ? resolveOutputJsExtension(
|
50481
50485
|
format,
|
50482
50486
|
findNearestPackageData(root, packageCache)?.data.type
|
50483
50487
|
) : "js";
|
@@ -50503,7 +50507,7 @@ ${stackOnly}`;
|
|
50503
50507
|
) : path$d.posix.join(options.assetsDir, `[name]-[hash].${jsExt}`),
|
50504
50508
|
chunkFileNames: libOptions ? `[name]-[hash].${jsExt}` : path$d.posix.join(options.assetsDir, `[name]-[hash].${jsExt}`),
|
50505
50509
|
assetFileNames: libOptions ? `[name].[ext]` : path$d.posix.join(options.assetsDir, `[name]-[hash].[ext]`),
|
50506
|
-
inlineDynamicImports: output.format === "umd" || output.format === "iife",
|
50510
|
+
inlineDynamicImports: output.format === "umd" || output.format === "iife" || isSsrTargetWebworkerEnvironment && (typeof input === "string" || Object.keys(input).length === 1),
|
50507
50511
|
...output
|
50508
50512
|
};
|
50509
50513
|
};
|
@@ -51374,6 +51378,8 @@ function createDepsOptimizer(environment) {
|
|
51374
51378
|
if (debounceProcessingHandle) clearTimeout(debounceProcessingHandle);
|
51375
51379
|
if (closed) {
|
51376
51380
|
currentlyProcessing = false;
|
51381
|
+
depOptimizationProcessing.resolve();
|
51382
|
+
resolveEnqueuedProcessingPromises();
|
51377
51383
|
return;
|
51378
51384
|
}
|
51379
51385
|
currentlyProcessing = true;
|
@@ -52499,7 +52505,7 @@ function compression ({ threshold = 1024, level = -1, brotli = false, gzip = tru
|
|
52499
52505
|
|
52500
52506
|
function resolvePreviewOptions(preview2, server) {
|
52501
52507
|
return {
|
52502
|
-
port: preview2?.port,
|
52508
|
+
port: preview2?.port ?? DEFAULT_PREVIEW_PORT,
|
52503
52509
|
strictPort: preview2?.strictPort ?? server.strictPort,
|
52504
52510
|
host: preview2?.host ?? server.host,
|
52505
52511
|
https: preview2?.https ?? server.https,
|
@@ -52610,9 +52616,8 @@ async function preview(inlineConfig = {}) {
|
|
52610
52616
|
app.use(notFoundMiddleware());
|
52611
52617
|
}
|
52612
52618
|
const hostname = await resolveHostname(options.host);
|
52613
|
-
const port = options.port ?? configDefaults.preview.port;
|
52614
52619
|
await httpServerStart(httpServer, {
|
52615
|
-
port,
|
52620
|
+
port: options.port,
|
52616
52621
|
strictPort: options.strictPort,
|
52617
52622
|
host: hostname.host,
|
52618
52623
|
logger
|
@@ -52687,7 +52692,7 @@ const configDefaults = Object.freeze({
|
|
52687
52692
|
dedupe: [],
|
52688
52693
|
/** @experimental */
|
52689
52694
|
noExternal: [],
|
52690
|
-
|
52695
|
+
external: [],
|
52691
52696
|
preserveSymlinks: false,
|
52692
52697
|
alias: []
|
52693
52698
|
},
|
@@ -52816,8 +52821,7 @@ function resolveEnvironmentOptions(options, alias, preserveSymlinks, logger, env
|
|
52816
52821
|
build: resolveBuildEnvironmentOptions(
|
52817
52822
|
options.build ?? {},
|
52818
52823
|
logger,
|
52819
|
-
consumer
|
52820
|
-
isSsrTargetWebworkerEnvironment
|
52824
|
+
consumer
|
52821
52825
|
)
|
52822
52826
|
};
|
52823
52827
|
}
|
@@ -52870,7 +52874,7 @@ function resolveEnvironmentResolveOptions(resolve, alias, preserveSymlinks, logg
|
|
52870
52874
|
...configDefaults.resolve,
|
52871
52875
|
mainFields: consumer === "client" || isSsrTargetWebworkerEnvironment ? DEFAULT_CLIENT_MAIN_FIELDS : DEFAULT_SERVER_MAIN_FIELDS,
|
52872
52876
|
conditions: consumer === "client" || isSsrTargetWebworkerEnvironment ? DEFAULT_CLIENT_CONDITIONS : DEFAULT_SERVER_CONDITIONS.filter((c) => c !== "browser"),
|
52873
|
-
|
52877
|
+
enableBuiltinNoExternalCheck: !!isSsrTargetWebworkerEnvironment
|
52874
52878
|
},
|
52875
52879
|
resolve ?? {}
|
52876
52880
|
);
|
@@ -53555,7 +53559,7 @@ async function bundleConfigFile(fileName, isESM) {
|
|
53555
53559
|
const _require = createRequire$1(import.meta.url);
|
53556
53560
|
async function loadConfigFromBundledFile(fileName, bundledCode, isESM) {
|
53557
53561
|
if (isESM) {
|
53558
|
-
const nodeModulesDir = findNearestNodeModules(path$d.dirname(fileName));
|
53562
|
+
const nodeModulesDir = typeof process.versions.deno === "string" ? void 0 : findNearestNodeModules(path$d.dirname(fileName));
|
53559
53563
|
if (nodeModulesDir) {
|
53560
53564
|
await fsp.mkdir(path$d.resolve(nodeModulesDir, ".vite-temp/"), {
|
53561
53565
|
recursive: true
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { O as commonjsGlobal, N as getDefaultExportFromCjs } from './dep-
|
1
|
+
import { O as commonjsGlobal, N as getDefaultExportFromCjs } from './dep-A4nAWF7x.js';
|
2
2
|
import require$$0$2 from 'fs';
|
3
3
|
import require$$0 from 'postcss';
|
4
4
|
import require$$0$1 from 'path';
|
package/dist/node/cli.js
CHANGED
@@ -2,7 +2,7 @@ import path from 'node:path';
|
|
2
2
|
import fs__default from 'node:fs';
|
3
3
|
import { performance } from 'node:perf_hooks';
|
4
4
|
import { EventEmitter } from 'events';
|
5
|
-
import { M as colors, G as createLogger, r as resolveConfig } from './chunks/dep-
|
5
|
+
import { M as colors, G as createLogger, r as resolveConfig } from './chunks/dep-A4nAWF7x.js';
|
6
6
|
import { VERSION } from './constants.js';
|
7
7
|
import 'node:fs/promises';
|
8
8
|
import 'node:url';
|
@@ -740,7 +740,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
|
|
740
740
|
`[boolean] force the optimizer to ignore the cache and re-bundle`
|
741
741
|
).action(async (root, options) => {
|
742
742
|
filterDuplicateOptions(options);
|
743
|
-
const { createServer } = await import('./chunks/dep-
|
743
|
+
const { createServer } = await import('./chunks/dep-A4nAWF7x.js').then(function (n) { return n.Q; });
|
744
744
|
try {
|
745
745
|
const server = await createServer({
|
746
746
|
root,
|
@@ -833,7 +833,7 @@ cli.command("build [root]", "build for production").option("--target <target>",
|
|
833
833
|
).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).option("--app", `[boolean] same as \`builder: {}\``).action(
|
834
834
|
async (root, options) => {
|
835
835
|
filterDuplicateOptions(options);
|
836
|
-
const { createBuilder } = await import('./chunks/dep-
|
836
|
+
const { createBuilder } = await import('./chunks/dep-A4nAWF7x.js').then(function (n) { return n.R; });
|
837
837
|
const buildOptions = cleanGlobalCLIOptions(
|
838
838
|
cleanBuilderCLIOptions(options)
|
839
839
|
);
|
@@ -868,7 +868,7 @@ cli.command("optimize [root]", "pre-bundle dependencies").option(
|
|
868
868
|
).action(
|
869
869
|
async (root, options) => {
|
870
870
|
filterDuplicateOptions(options);
|
871
|
-
const { optimizeDeps } = await import('./chunks/dep-
|
871
|
+
const { optimizeDeps } = await import('./chunks/dep-A4nAWF7x.js').then(function (n) { return n.P; });
|
872
872
|
try {
|
873
873
|
const config = await resolveConfig(
|
874
874
|
{
|
@@ -894,7 +894,7 @@ ${e.stack}`),
|
|
894
894
|
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(
|
895
895
|
async (root, options) => {
|
896
896
|
filterDuplicateOptions(options);
|
897
|
-
const { preview } = await import('./chunks/dep-
|
897
|
+
const { preview } = await import('./chunks/dep-A4nAWF7x.js').then(function (n) { return n.S; });
|
898
898
|
try {
|
899
899
|
const server = await preview({
|
900
900
|
root,
|
package/dist/node/index.d.ts
CHANGED
@@ -733,9 +733,11 @@ interface CorsOptions {
|
|
733
733
|
}
|
734
734
|
type CorsOrigin = boolean | string | RegExp | (string | RegExp)[];
|
735
735
|
|
736
|
+
type RequiredExceptFor<T, K extends keyof T> = Pick<T, K> & Required<Omit<T, K>>;
|
737
|
+
|
736
738
|
interface PreviewOptions extends CommonServerOptions {
|
737
739
|
}
|
738
|
-
interface ResolvedPreviewOptions extends PreviewOptions {
|
740
|
+
interface ResolvedPreviewOptions extends RequiredExceptFor<PreviewOptions, 'host' | 'https' | 'proxy'> {
|
739
741
|
}
|
740
742
|
interface PreviewServer {
|
741
743
|
/**
|
@@ -2439,7 +2441,7 @@ interface ResolvePluginOptions {
|
|
2439
2441
|
*/
|
2440
2442
|
ssrConfig?: SSROptions;
|
2441
2443
|
}
|
2442
|
-
interface InternalResolveOptions extends Required<ResolveOptions
|
2444
|
+
interface InternalResolveOptions extends Required<Omit<ResolveOptions, 'enableBuiltinNoExternalCheck'>>, ResolvePluginOptions {
|
2443
2445
|
}
|
2444
2446
|
|
2445
2447
|
/** Cache for package.json resolution and package.json contents */
|
@@ -2936,7 +2938,7 @@ interface ServerOptions extends CommonServerOptions {
|
|
2936
2938
|
*/
|
2937
2939
|
hotUpdateEnvironments?: (server: ViteDevServer, hmr: (environment: DevEnvironment) => Promise<void>) => Promise<void>;
|
2938
2940
|
}
|
2939
|
-
interface ResolvedServerOptions extends Omit<ServerOptions, 'fs' | 'middlewareMode' | 'sourcemapIgnoreList'> {
|
2941
|
+
interface ResolvedServerOptions extends Omit<RequiredExceptFor<ServerOptions, 'host' | 'https' | 'proxy' | 'hmr' | 'ws' | 'watch' | 'origin' | 'hotUpdateEnvironments'>, 'fs' | 'middlewareMode' | 'sourcemapIgnoreList'> {
|
2940
2942
|
fs: Required<FileSystemServeOptions>;
|
2941
2943
|
middlewareMode: NonNullable<ServerOptions['middlewareMode']>;
|
2942
2944
|
sourcemapIgnoreList: Exclude<ServerOptions['sourcemapIgnoreList'], false | undefined>;
|
package/dist/node/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { parseAst, parseAstAsync } from 'rollup/parseAst';
|
2
|
-
import { i as isInNodeModules, a as arraify } from './chunks/dep-
|
3
|
-
export { B as BuildEnvironment, D as DevEnvironment, f as build, m as buildErrorMessage, g as createBuilder, C as createFilter, h as createIdResolver, G as createLogger, n as createRunnableDevEnvironment, c as createServer, w as createServerHotChannel, v as createServerModuleRunner, d as defineConfig, u as fetchModule, j as formatPostcssSourceMap, J as isFileLoadingAllowed, I as isFileServingAllowed, q as isRunnableDevEnvironment, l as loadConfigFromFile, K as loadEnv, A as mergeAlias, z as mergeConfig, x as moduleRunnerTransform, y as normalizePath, o as optimizeDeps, p as perEnvironmentPlugin, b as perEnvironmentState, k as preprocessCSS, e as preview, r as resolveConfig, L as resolveEnvPrefix, E as rollupVersion, H as searchForWorkspaceRoot, F as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-
|
2
|
+
import { i as isInNodeModules, a as arraify } from './chunks/dep-A4nAWF7x.js';
|
3
|
+
export { B as BuildEnvironment, D as DevEnvironment, f as build, m as buildErrorMessage, g as createBuilder, C as createFilter, h as createIdResolver, G as createLogger, n as createRunnableDevEnvironment, c as createServer, w as createServerHotChannel, v as createServerModuleRunner, d as defineConfig, u as fetchModule, j as formatPostcssSourceMap, J as isFileLoadingAllowed, I as isFileServingAllowed, q as isRunnableDevEnvironment, l as loadConfigFromFile, K as loadEnv, A as mergeAlias, z as mergeConfig, x as moduleRunnerTransform, y as normalizePath, o as optimizeDeps, p as perEnvironmentPlugin, b as perEnvironmentState, k as preprocessCSS, e as preview, r as resolveConfig, L as resolveEnvPrefix, E as rollupVersion, H as searchForWorkspaceRoot, F as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-A4nAWF7x.js';
|
4
4
|
export { DEFAULT_CLIENT_CONDITIONS as defaultClientConditions, DEFAULT_CLIENT_MAIN_FIELDS as defaultClientMainFields, DEFAULT_SERVER_CONDITIONS as defaultServerConditions, DEFAULT_SERVER_MAIN_FIELDS as defaultServerMainFields, VERSION as version } from './constants.js';
|
5
5
|
export { version as esbuildVersion } from 'esbuild';
|
6
6
|
import 'node:fs';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vite",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.2",
|
4
4
|
"type": "module",
|
5
5
|
"license": "MIT",
|
6
6
|
"author": "Evan You",
|
@@ -192,7 +192,7 @@
|
|
192
192
|
"build": "premove dist && pnpm build-bundle && pnpm build-types",
|
193
193
|
"build-bundle": "rollup --config rollup.config.ts --configPlugin esbuild",
|
194
194
|
"build-types": "pnpm build-types-temp && pnpm build-types-roll && pnpm build-types-check",
|
195
|
-
"build-types-temp": "tsc --emitDeclarationOnly --outDir temp -p src/node",
|
195
|
+
"build-types-temp": "tsc --emitDeclarationOnly --outDir temp -p src/node/tsconfig.build.json",
|
196
196
|
"build-types-roll": "rollup --config rollup.dts.config.ts --configPlugin esbuild && premove temp",
|
197
197
|
"build-types-check": "tsc --project tsconfig.check.json",
|
198
198
|
"typecheck": "tsc --noEmit && tsc --noEmit -p src/node",
|