vite 6.4.0 → 6.4.1
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-BgXtUGwv.js → dep-C9BXG1mU.js} +1 -1
- package/dist/node/chunks/{dep-N2lvmi1C.js → dep-D4NMHUTW.js} +4 -3
- package/dist/node/chunks/{dep-DpdbJjFS.js → dep-DWMUTS1A.js} +1 -1
- package/dist/node/cli.js +5 -5
- package/dist/node/index.js +2 -2
- package/dist/node-cjs/publicUtils.cjs +2 -1
- package/package.json +1 -1
|
@@ -35509,7 +35509,8 @@ function isUriInFilePath(uri, filePath) {
|
|
|
35509
35509
|
function isFileLoadingAllowed(config, filePath) {
|
|
35510
35510
|
const { fs } = config.server;
|
|
35511
35511
|
if (!fs.strict) return true;
|
|
35512
|
-
|
|
35512
|
+
const filePathWithoutTrailingSlash = filePath.endsWith("/") ? filePath.slice(0, -1) : filePath;
|
|
35513
|
+
if (config.fsDenyGlob(filePathWithoutTrailingSlash)) return false;
|
|
35513
35514
|
if (config.safeModulePaths.has(filePath)) return true;
|
|
35514
35515
|
if (fs.allow.some((uri) => isUriInFilePath(uri, filePath))) return true;
|
|
35515
35516
|
return false;
|
|
@@ -43940,8 +43941,8 @@ function createCachedImport(imp) {
|
|
|
43940
43941
|
return cached;
|
|
43941
43942
|
};
|
|
43942
43943
|
}
|
|
43943
|
-
const importPostcssImport = createCachedImport(() => import('./dep-
|
|
43944
|
-
const importPostcssModules = createCachedImport(() => import('./dep-
|
|
43944
|
+
const importPostcssImport = createCachedImport(() => import('./dep-C9BXG1mU.js').then(function (n) { return n.i; }));
|
|
43945
|
+
const importPostcssModules = createCachedImport(() => import('./dep-DWMUTS1A.js').then(function (n) { return n.i; }));
|
|
43945
43946
|
const importPostcss = createCachedImport(() => import('postcss'));
|
|
43946
43947
|
const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
|
|
43947
43948
|
let alwaysFakeWorkerWorkerControllerCache;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Q as commonjsGlobal, P as getDefaultExportFromCjs } from './dep-
|
|
1
|
+
import { Q as commonjsGlobal, P as getDefaultExportFromCjs } from './dep-D4NMHUTW.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 { O as colors, I as createLogger, r as resolveConfig } from './chunks/dep-
|
|
5
|
+
import { O as colors, I as createLogger, r as resolveConfig } from './chunks/dep-D4NMHUTW.js';
|
|
6
6
|
import { VERSION } from './constants.js';
|
|
7
7
|
import 'node:fs/promises';
|
|
8
8
|
import 'node:url';
|
|
@@ -748,7 +748,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
|
|
|
748
748
|
`[boolean] force the optimizer to ignore the cache and re-bundle`
|
|
749
749
|
).action(async (root, options) => {
|
|
750
750
|
filterDuplicateOptions(options);
|
|
751
|
-
const { createServer } = await import('./chunks/dep-
|
|
751
|
+
const { createServer } = await import('./chunks/dep-D4NMHUTW.js').then(function (n) { return n.S; });
|
|
752
752
|
try {
|
|
753
753
|
const server = await createServer({
|
|
754
754
|
root,
|
|
@@ -843,7 +843,7 @@ cli.command("build [root]", "build for production").option("--target <target>",
|
|
|
843
843
|
).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).option("--app", `[boolean] same as \`builder: {}\``).action(
|
|
844
844
|
async (root, options) => {
|
|
845
845
|
filterDuplicateOptions(options);
|
|
846
|
-
const { createBuilder } = await import('./chunks/dep-
|
|
846
|
+
const { createBuilder } = await import('./chunks/dep-D4NMHUTW.js').then(function (n) { return n.T; });
|
|
847
847
|
const buildOptions = cleanGlobalCLIOptions(
|
|
848
848
|
cleanBuilderCLIOptions(options)
|
|
849
849
|
);
|
|
@@ -882,7 +882,7 @@ cli.command(
|
|
|
882
882
|
).action(
|
|
883
883
|
async (root, options) => {
|
|
884
884
|
filterDuplicateOptions(options);
|
|
885
|
-
const { optimizeDeps } = await import('./chunks/dep-
|
|
885
|
+
const { optimizeDeps } = await import('./chunks/dep-D4NMHUTW.js').then(function (n) { return n.R; });
|
|
886
886
|
try {
|
|
887
887
|
const config = await resolveConfig(
|
|
888
888
|
{
|
|
@@ -909,7 +909,7 @@ ${e.stack}`),
|
|
|
909
909
|
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(
|
|
910
910
|
async (root, options) => {
|
|
911
911
|
filterDuplicateOptions(options);
|
|
912
|
-
const { preview } = await import('./chunks/dep-
|
|
912
|
+
const { preview } = await import('./chunks/dep-D4NMHUTW.js').then(function (n) { return n.U; });
|
|
913
913
|
try {
|
|
914
914
|
const server = await preview({
|
|
915
915
|
root,
|
package/dist/node/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { parseAst, parseAstAsync } from 'rollup/parseAst';
|
|
2
|
-
import { a as arraify, i as isInNodeModules, D as DevEnvironment } from './chunks/dep-
|
|
3
|
-
export { B as BuildEnvironment, f as build, m as buildErrorMessage, g as createBuilder, F as createFilter, h as createIdResolver, I as createLogger, n as createRunnableDevEnvironment, c as createServer, y as createServerHotChannel, w as createServerModuleRunner, x as createServerModuleRunnerTransport, d as defineConfig, v as fetchModule, j as formatPostcssSourceMap, L as isFileLoadingAllowed, K as isFileServingAllowed, q as isRunnableDevEnvironment, l as loadConfigFromFile, M as loadEnv, E as mergeAlias, C as mergeConfig, z as moduleRunnerTransform, A as normalizePath, o as optimizeDeps, p as perEnvironmentPlugin, b as perEnvironmentState, k as preprocessCSS, e as preview, r as resolveConfig, N as resolveEnvPrefix, G as rollupVersion, u as runnerImport, J as searchForWorkspaceRoot, H as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-
|
|
2
|
+
import { a as arraify, i as isInNodeModules, D as DevEnvironment } from './chunks/dep-D4NMHUTW.js';
|
|
3
|
+
export { B as BuildEnvironment, f as build, m as buildErrorMessage, g as createBuilder, F as createFilter, h as createIdResolver, I as createLogger, n as createRunnableDevEnvironment, c as createServer, y as createServerHotChannel, w as createServerModuleRunner, x as createServerModuleRunnerTransport, d as defineConfig, v as fetchModule, j as formatPostcssSourceMap, L as isFileLoadingAllowed, K as isFileServingAllowed, q as isRunnableDevEnvironment, l as loadConfigFromFile, M as loadEnv, E as mergeAlias, C as mergeConfig, z as moduleRunnerTransform, A as normalizePath, o as optimizeDeps, p as perEnvironmentPlugin, b as perEnvironmentState, k as preprocessCSS, e as preview, r as resolveConfig, N as resolveEnvPrefix, G as rollupVersion, u as runnerImport, J as searchForWorkspaceRoot, H as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-D4NMHUTW.js';
|
|
4
4
|
export { defaultAllowedOrigins, 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';
|
|
@@ -3417,7 +3417,8 @@ function isUriInFilePath(uri, filePath) {
|
|
|
3417
3417
|
function isFileLoadingAllowed(config, filePath) {
|
|
3418
3418
|
const { fs } = config.server;
|
|
3419
3419
|
if (!fs.strict) return true;
|
|
3420
|
-
|
|
3420
|
+
const filePathWithoutTrailingSlash = filePath.endsWith("/") ? filePath.slice(0, -1) : filePath;
|
|
3421
|
+
if (config.fsDenyGlob(filePathWithoutTrailingSlash)) return false;
|
|
3421
3422
|
if (config.safeModulePaths.has(filePath)) return true;
|
|
3422
3423
|
if (fs.allow.some((uri) => isUriInFilePath(uri, filePath))) return true;
|
|
3423
3424
|
return false;
|