vite 6.0.9 → 6.0.10
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.
@@ -1,4 +1,4 @@
|
|
1
|
-
import { O as commonjsGlobal, N as getDefaultExportFromCjs } from './dep-
|
1
|
+
import { O as commonjsGlobal, N as getDefaultExportFromCjs } from './dep-DP_yvx5y.js';
|
2
2
|
import require$$0$2 from 'fs';
|
3
3
|
import require$$0 from 'postcss';
|
4
4
|
import require$$0$1 from 'path';
|
@@ -37684,8 +37684,11 @@ function getAdditionalAllowedHosts(resolvedServerOptions, resolvedPreviewOptions
|
|
37684
37684
|
list.push(resolvedPreviewOptions.host);
|
37685
37685
|
}
|
37686
37686
|
if (resolvedServerOptions.origin) {
|
37687
|
-
|
37688
|
-
|
37687
|
+
try {
|
37688
|
+
const serverOriginUrl = new URL(resolvedServerOptions.origin);
|
37689
|
+
list.push(serverOriginUrl.hostname);
|
37690
|
+
} catch {
|
37691
|
+
}
|
37689
37692
|
}
|
37690
37693
|
return list;
|
37691
37694
|
}
|
@@ -48872,8 +48875,8 @@ function createCachedImport(imp) {
|
|
48872
48875
|
return cached;
|
48873
48876
|
};
|
48874
48877
|
}
|
48875
|
-
const importPostcssImport = createCachedImport(() => import('./dep-
|
48876
|
-
const importPostcssModules = createCachedImport(() => import('./dep-
|
48878
|
+
const importPostcssImport = createCachedImport(() => import('./dep-a6F3bn0a.js').then(function (n) { return n.i; }));
|
48879
|
+
const importPostcssModules = createCachedImport(() => import('./dep-BgKqB7IO.js').then(function (n) { return n.i; }));
|
48877
48880
|
const importPostcss = createCachedImport(() => import('postcss'));
|
48878
48881
|
const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
|
48879
48882
|
let alwaysFakeWorkerWorkerControllerCache;
|
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-DP_yvx5y.js';
|
6
6
|
import { VERSION } from './constants.js';
|
7
7
|
import 'node:fs/promises';
|
8
8
|
import 'node:url';
|
@@ -741,7 +741,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
|
|
741
741
|
`[boolean] force the optimizer to ignore the cache and re-bundle`
|
742
742
|
).action(async (root, options) => {
|
743
743
|
filterDuplicateOptions(options);
|
744
|
-
const { createServer } = await import('./chunks/dep-
|
744
|
+
const { createServer } = await import('./chunks/dep-DP_yvx5y.js').then(function (n) { return n.Q; });
|
745
745
|
try {
|
746
746
|
const server = await createServer({
|
747
747
|
root,
|
@@ -834,7 +834,7 @@ cli.command("build [root]", "build for production").option("--target <target>",
|
|
834
834
|
).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).option("--app", `[boolean] same as \`builder: {}\``).action(
|
835
835
|
async (root, options) => {
|
836
836
|
filterDuplicateOptions(options);
|
837
|
-
const { createBuilder } = await import('./chunks/dep-
|
837
|
+
const { createBuilder } = await import('./chunks/dep-DP_yvx5y.js').then(function (n) { return n.R; });
|
838
838
|
const buildOptions = cleanGlobalCLIOptions(
|
839
839
|
cleanBuilderCLIOptions(options)
|
840
840
|
);
|
@@ -869,7 +869,7 @@ cli.command("optimize [root]", "pre-bundle dependencies").option(
|
|
869
869
|
).action(
|
870
870
|
async (root, options) => {
|
871
871
|
filterDuplicateOptions(options);
|
872
|
-
const { optimizeDeps } = await import('./chunks/dep-
|
872
|
+
const { optimizeDeps } = await import('./chunks/dep-DP_yvx5y.js').then(function (n) { return n.P; });
|
873
873
|
try {
|
874
874
|
const config = await resolveConfig(
|
875
875
|
{
|
@@ -895,7 +895,7 @@ ${e.stack}`),
|
|
895
895
|
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(
|
896
896
|
async (root, options) => {
|
897
897
|
filterDuplicateOptions(options);
|
898
|
-
const { preview } = await import('./chunks/dep-
|
898
|
+
const { preview } = await import('./chunks/dep-DP_yvx5y.js').then(function (n) { return n.S; });
|
899
899
|
try {
|
900
900
|
const server = await preview({
|
901
901
|
root,
|
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-DP_yvx5y.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-DP_yvx5y.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';
|