vite 7.0.1 → 7.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.
- package/dist/node/chunks/{dep-BVsfzsUS.js → dep-9VG2sVxV.js} +1 -1
- package/dist/node/chunks/{dep-BQABeiGC.js → dep-CWDKzjJ3.js} +1 -1
- package/dist/node/chunks/{dep-DJGyAxkV.js → dep-CXCa-anf.js} +23 -28
- package/dist/node/chunks/{dep-fMAWSKNW.js → dep-Cm-wi8LO.js} +1 -1
- package/dist/node/chunks/{dep-BTLup-s1.js → dep-DytQrE0P.js} +1 -1
- package/dist/node/cli.js +5 -5
- package/dist/node/index.js +1 -1
- package/package.json +1 -1
@@ -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-CXCa-anf.js";
|
3
3
|
import "./dep-Ctugieod.js";
|
4
4
|
|
5
5
|
export { createServer };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
import { preview, resolvePreviewOptions } from "./dep-
|
2
|
+
import { preview, resolvePreviewOptions } from "./dep-CXCa-anf.js";
|
3
3
|
import "./dep-Ctugieod.js";
|
4
4
|
|
5
5
|
export { preview };
|
@@ -5675,7 +5675,7 @@ function throttle(fn) {
|
|
5675
5675
|
}
|
5676
5676
|
|
5677
5677
|
//#endregion
|
5678
|
-
//#region ../../node_modules/.pnpm/tsconfck@3.1.
|
5678
|
+
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.7.3/node_modules/tsconfck/src/util.js
|
5679
5679
|
const POSIX_SEP_RE = new RegExp("\\" + path.posix.sep, "g");
|
5680
5680
|
const NATIVE_SEP_RE = new RegExp("\\" + path.sep, "g");
|
5681
5681
|
/** @type {Map<string,RegExp>}*/
|
@@ -5907,7 +5907,7 @@ function replaceTokens(result) {
|
|
5907
5907
|
}
|
5908
5908
|
|
5909
5909
|
//#endregion
|
5910
|
-
//#region ../../node_modules/.pnpm/tsconfck@3.1.
|
5910
|
+
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.7.3/node_modules/tsconfck/src/find.js
|
5911
5911
|
/**
|
5912
5912
|
* find the closest tsconfig.json file
|
5913
5913
|
*
|
@@ -5966,7 +5966,7 @@ function findUp(dir, { resolve: resolve$4, reject, promise }, options$1) {
|
|
5966
5966
|
}
|
5967
5967
|
|
5968
5968
|
//#endregion
|
5969
|
-
//#region ../../node_modules/.pnpm/tsconfck@3.1.
|
5969
|
+
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.7.3/node_modules/tsconfck/src/find-all.js
|
5970
5970
|
/**
|
5971
5971
|
* @typedef WalkState
|
5972
5972
|
* @interface
|
@@ -5979,7 +5979,7 @@ function findUp(dir, { resolve: resolve$4, reject, promise }, options$1) {
|
|
5979
5979
|
const sep$2 = path.sep;
|
5980
5980
|
|
5981
5981
|
//#endregion
|
5982
|
-
//#region ../../node_modules/.pnpm/tsconfck@3.1.
|
5982
|
+
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.7.3/node_modules/tsconfck/src/to-json.js
|
5983
5983
|
/**
|
5984
5984
|
* convert content of tsconfig.json to regular json
|
5985
5985
|
*
|
@@ -6109,7 +6109,7 @@ function stripBom(string) {
|
|
6109
6109
|
}
|
6110
6110
|
|
6111
6111
|
//#endregion
|
6112
|
-
//#region ../../node_modules/.pnpm/tsconfck@3.1.
|
6112
|
+
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.7.3/node_modules/tsconfck/src/parse.js
|
6113
6113
|
const not_found_result = {
|
6114
6114
|
tsconfigFile: null,
|
6115
6115
|
tsconfig: {}
|
@@ -6401,7 +6401,7 @@ function isJSConfig(configFileName) {
|
|
6401
6401
|
}
|
6402
6402
|
|
6403
6403
|
//#endregion
|
6404
|
-
//#region ../../node_modules/.pnpm/tsconfck@3.1.
|
6404
|
+
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.7.3/node_modules/tsconfck/src/parse-native.js
|
6405
6405
|
/** @typedef TSDiagnosticError {
|
6406
6406
|
code: number;
|
6407
6407
|
category: number;
|
@@ -6410,7 +6410,7 @@ start?: number;
|
|
6410
6410
|
} TSDiagnosticError */
|
6411
6411
|
|
6412
6412
|
//#endregion
|
6413
|
-
//#region ../../node_modules/.pnpm/tsconfck@3.1.
|
6413
|
+
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.7.3/node_modules/tsconfck/src/cache.js
|
6414
6414
|
/** @template T */
|
6415
6415
|
var TSConfckCache = class {
|
6416
6416
|
/**
|
@@ -8661,8 +8661,8 @@ var require_src$1 = __commonJS({ "../../node_modules/.pnpm/lilconfig@3.1.3/node_
|
|
8661
8661
|
} });
|
8662
8662
|
|
8663
8663
|
//#endregion
|
8664
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.
|
8665
|
-
var require_req = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.
|
8664
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/req.js
|
8665
|
+
var require_req = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/req.js"(exports, module) {
|
8666
8666
|
const { createRequire: createRequire$2 } = require("node:module");
|
8667
8667
|
const { fileURLToPath: fileURLToPath$1, pathToFileURL: pathToFileURL$1 } = require("node:url");
|
8668
8668
|
const TS_EXT_RE = /\.[mc]?ts$/;
|
@@ -8704,8 +8704,8 @@ var require_req = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0
|
|
8704
8704
|
} });
|
8705
8705
|
|
8706
8706
|
//#endregion
|
8707
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.
|
8708
|
-
var require_options = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.
|
8707
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/options.js
|
8708
|
+
var require_options = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/options.js"(exports, module) {
|
8709
8709
|
const req$2 = require_req();
|
8710
8710
|
/**
|
8711
8711
|
* Load Options
|
@@ -8739,8 +8739,8 @@ var require_options = __commonJS({ "../../node_modules/.pnpm/postcss-load-config
|
|
8739
8739
|
} });
|
8740
8740
|
|
8741
8741
|
//#endregion
|
8742
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.
|
8743
|
-
var require_plugins = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.
|
8742
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/plugins.js
|
8743
|
+
var require_plugins = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/plugins.js"(exports, module) {
|
8744
8744
|
const req$1 = require_req();
|
8745
8745
|
/**
|
8746
8746
|
* Plugin Loader
|
@@ -8794,8 +8794,8 @@ var require_plugins = __commonJS({ "../../node_modules/.pnpm/postcss-load-config
|
|
8794
8794
|
} });
|
8795
8795
|
|
8796
8796
|
//#endregion
|
8797
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.
|
8798
|
-
var require_src = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.
|
8797
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/index.js
|
8798
|
+
var require_src = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/index.js"(exports, module) {
|
8799
8799
|
const { resolve: resolve$2 } = require("node:path");
|
8800
8800
|
const config$1 = require_src$1();
|
8801
8801
|
const loadOptions = require_options();
|
@@ -30884,7 +30884,7 @@ function createFilterForTransform(idFilter, codeFilter, cwd) {
|
|
30884
30884
|
async function resolvePlugins(config$2, prePlugins, normalPlugins, postPlugins) {
|
30885
30885
|
const isBuild = config$2.command === "build";
|
30886
30886
|
const isWorker = config$2.isWorker;
|
30887
|
-
const buildPlugins = isBuild ? await (await import("./dep-
|
30887
|
+
const buildPlugins = isBuild ? await (await import("./dep-DytQrE0P.js")).resolveBuildPlugins(config$2) : {
|
30888
30888
|
pre: [],
|
30889
30889
|
post: []
|
30890
30890
|
};
|
@@ -32758,16 +32758,11 @@ const makeScssWorker = (environment, resolvers, _maxWorkers) => {
|
|
32758
32758
|
if (!isQuoted && unquotedUrl[0] === "$") return true;
|
32759
32759
|
return unquotedUrl.startsWith("#{");
|
32760
32760
|
};
|
32761
|
-
const
|
32761
|
+
const internalImporter = {
|
32762
32762
|
async canonicalize(url$6, context) {
|
32763
|
-
|
32764
|
-
|
32765
|
-
|
32766
|
-
} else {
|
32767
|
-
const importer = context.containingUrl ? fileURLToPath(context.containingUrl) : options$1.filename;
|
32768
|
-
const resolved = await resolvers.sass(environment, url$6, cleanScssBugUrl(importer));
|
32769
|
-
if (resolved && (resolved.endsWith(".css") || resolved.endsWith(".scss") || resolved.endsWith(".sass"))) return pathToFileURL(resolved);
|
32770
|
-
}
|
32763
|
+
const importer = context.containingUrl ? fileURLToPath(context.containingUrl) : options$1.filename;
|
32764
|
+
const resolved = await resolvers.sass(environment, url$6, cleanScssBugUrl(importer));
|
32765
|
+
if (resolved && (resolved.endsWith(".css") || resolved.endsWith(".scss") || resolved.endsWith(".sass"))) return pathToFileURL(resolved);
|
32771
32766
|
return null;
|
32772
32767
|
},
|
32773
32768
|
async load(canonicalUrl) {
|
@@ -32783,9 +32778,9 @@ const makeScssWorker = (environment, resolvers, _maxWorkers) => {
|
|
32783
32778
|
sourceMapUrl: canonicalUrl
|
32784
32779
|
};
|
32785
32780
|
}
|
32786
|
-
}
|
32787
|
-
sassOptions.importers = [...sassOptions.importers ?? [],
|
32788
|
-
sassOptions.importer ??=
|
32781
|
+
};
|
32782
|
+
sassOptions.importers = [...sassOptions.importers ?? [], internalImporter];
|
32783
|
+
sassOptions.importer ??= internalImporter;
|
32789
32784
|
const result = await compiler.compileStringAsync(data, sassOptions);
|
32790
32785
|
return {
|
32791
32786
|
css: result.css,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
import { addManuallyIncludedOptimizeDeps, addOptimizedDepInfo, cleanupDepsCacheStaleDirs, createIsOptimizedDepFile, createIsOptimizedDepUrl, depsFromOptimizedDepInfo, depsLogString, discoverProjectDependencies, extractExportsData, getDepsCacheDir, getOptimizedDepPath, initDepsOptimizerMetadata, isDepOptimizationDisabled, loadCachedDepOptimizationMetadata, optimizeDeps, optimizeExplicitEnvironmentDeps, optimizedDepInfoFromFile, optimizedDepInfoFromId, optimizedDepNeedsInterop, runOptimizeDeps, toDiscoveredDependencies } from "./dep-
|
2
|
+
import { addManuallyIncludedOptimizeDeps, addOptimizedDepInfo, cleanupDepsCacheStaleDirs, createIsOptimizedDepFile, createIsOptimizedDepUrl, depsFromOptimizedDepInfo, depsLogString, discoverProjectDependencies, extractExportsData, getDepsCacheDir, getOptimizedDepPath, initDepsOptimizerMetadata, isDepOptimizationDisabled, loadCachedDepOptimizationMetadata, optimizeDeps, optimizeExplicitEnvironmentDeps, optimizedDepInfoFromFile, optimizedDepInfoFromId, optimizedDepNeedsInterop, runOptimizeDeps, toDiscoveredDependencies } from "./dep-CXCa-anf.js";
|
3
3
|
import "./dep-Ctugieod.js";
|
4
4
|
|
5
5
|
export { optimizeDeps };
|
@@ -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-CXCa-anf.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-CXCa-anf.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-9VG2sVxV.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-DytQrE0P.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-Cm-wi8LO.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-CWDKzjJ3.js");
|
671
671
|
try {
|
672
672
|
const server = await preview({
|
673
673
|
root,
|
package/dist/node/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
import { BuildEnvironment, DevEnvironment, build, buildErrorMessage, createBuilder, createFilter, createIdResolver, createLogger, createRunnableDevEnvironment, createServer, createServerHotChannel, createServerModuleRunner, createServerModuleRunnerTransport, defineConfig, fetchModule, formatPostcssSourceMap, isCSSRequest, isFileLoadingAllowed, isFileServingAllowed, isRunnableDevEnvironment, loadConfigFromFile, loadEnv, mergeAlias, mergeConfig, normalizePath, optimizeDeps, perEnvironmentPlugin, perEnvironmentState, preprocessCSS, preview, resolveConfig, resolveEnvPrefix, rollupVersion, runnerImport, searchForWorkspaceRoot, send, sortUserPlugins, ssrTransform, transformWithEsbuild } from "./chunks/dep-
|
2
|
+
import { BuildEnvironment, DevEnvironment, build, buildErrorMessage, createBuilder, createFilter, createIdResolver, createLogger, createRunnableDevEnvironment, createServer, createServerHotChannel, createServerModuleRunner, createServerModuleRunnerTransport, defineConfig, fetchModule, formatPostcssSourceMap, isCSSRequest, isFileLoadingAllowed, isFileServingAllowed, isRunnableDevEnvironment, loadConfigFromFile, loadEnv, mergeAlias, mergeConfig, normalizePath, optimizeDeps, perEnvironmentPlugin, perEnvironmentState, preprocessCSS, preview, resolveConfig, resolveEnvPrefix, rollupVersion, runnerImport, searchForWorkspaceRoot, send, sortUserPlugins, ssrTransform, transformWithEsbuild } from "./chunks/dep-CXCa-anf.js";
|
3
3
|
import { DEFAULT_CLIENT_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_SERVER_CONDITIONS, DEFAULT_SERVER_MAIN_FIELDS, VERSION, defaultAllowedOrigins } from "./chunks/dep-Ctugieod.js";
|
4
4
|
import { parseAst, parseAstAsync } from "rollup/parseAst";
|
5
5
|
import { version as esbuildVersion } from "esbuild";
|