vite 5.0.11 → 5.0.13
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.
@@ -40433,8 +40433,8 @@ function createCachedImport(imp) {
|
|
40433
40433
|
return cached;
|
40434
40434
|
};
|
40435
40435
|
}
|
40436
|
-
const importPostcssImport = createCachedImport(() => import('./dep-
|
40437
|
-
const importPostcssModules = createCachedImport(() => import('./dep-
|
40436
|
+
const importPostcssImport = createCachedImport(() => import('./dep-gpvPOXPd.js').then(function (n) { return n.i; }));
|
40437
|
+
const importPostcssModules = createCachedImport(() => import('./dep-oYYk9XU1.js').then(function (n) { return n.i; }));
|
40438
40438
|
const importPostcss = createCachedImport(() => import('postcss'));
|
40439
40439
|
/**
|
40440
40440
|
* @experimental
|
@@ -60507,7 +60507,15 @@ async function _createServer(inlineConfig = {}, options) {
|
|
60507
60507
|
_importGlobMap: new Map(),
|
60508
60508
|
_forceOptimizeOnRestart: false,
|
60509
60509
|
_pendingRequests: new Map(),
|
60510
|
-
_fsDenyGlob: picomatch$4(
|
60510
|
+
_fsDenyGlob: picomatch$4(
|
60511
|
+
// matchBase: true does not work as it's documented
|
60512
|
+
// https://github.com/micromatch/picomatch/issues/89
|
60513
|
+
// convert patterns without `/` on our side for now
|
60514
|
+
config.server.fs.deny.map((pattern) => pattern.includes('/') ? pattern : `**/${pattern}`), {
|
60515
|
+
matchBase: false,
|
60516
|
+
nocase: true,
|
60517
|
+
dot: true,
|
60518
|
+
}),
|
60511
60519
|
_shortcutsOptions: undefined,
|
60512
60520
|
};
|
60513
60521
|
if (!middlewareMode) {
|
@@ -68042,9 +68050,9 @@ async function resolveConfig(inlineConfig, command, defaultMode = 'development',
|
|
68042
68050
|
};
|
68043
68051
|
const resolvedWorkerPlugins = await resolvePlugins(workerResolved, workerPrePlugins, workerNormalPlugins, workerPostPlugins);
|
68044
68052
|
// run configResolved hooks
|
68045
|
-
createPluginHookUtils(resolvedWorkerPlugins)
|
68053
|
+
await Promise.all(createPluginHookUtils(resolvedWorkerPlugins)
|
68046
68054
|
.getSortedPluginHooks('configResolved')
|
68047
|
-
.map((hook) => hook(workerResolved));
|
68055
|
+
.map((hook) => hook(workerResolved)));
|
68048
68056
|
return resolvedWorkerPlugins;
|
68049
68057
|
};
|
68050
68058
|
const resolvedWorkerOptions = {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { z as commonjsGlobal, y as getDefaultExportFromCjs } from './dep-
|
1
|
+
import { z as commonjsGlobal, y as getDefaultExportFromCjs } from './dep-dh3wN_2j.js';
|
2
2
|
import require$$0__default 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 from 'node:fs';
|
3
3
|
import { performance } from 'node:perf_hooks';
|
4
4
|
import { EventEmitter } from 'events';
|
5
|
-
import { x as colors, k as createLogger, r as resolveConfig } from './chunks/dep-
|
5
|
+
import { x as colors, k as createLogger, r as resolveConfig } from './chunks/dep-dh3wN_2j.js';
|
6
6
|
import { VERSION } from './constants.js';
|
7
7
|
import 'node:fs/promises';
|
8
8
|
import 'node:url';
|
@@ -759,7 +759,7 @@ cli
|
|
759
759
|
filterDuplicateOptions(options);
|
760
760
|
// output structure is preserved even after bundling so require()
|
761
761
|
// is ok here
|
762
|
-
const { createServer } = await import('./chunks/dep-
|
762
|
+
const { createServer } = await import('./chunks/dep-dh3wN_2j.js').then(function (n) { return n.A; });
|
763
763
|
try {
|
764
764
|
const server = await createServer({
|
765
765
|
root,
|
@@ -839,7 +839,7 @@ cli
|
|
839
839
|
.option('-w, --watch', `[boolean] rebuilds when modules have changed on disk`)
|
840
840
|
.action(async (root, options) => {
|
841
841
|
filterDuplicateOptions(options);
|
842
|
-
const { build } = await import('./chunks/dep-
|
842
|
+
const { build } = await import('./chunks/dep-dh3wN_2j.js').then(function (n) { return n.C; });
|
843
843
|
const buildOptions = cleanOptions(options);
|
844
844
|
try {
|
845
845
|
await build({
|
@@ -867,7 +867,7 @@ cli
|
|
867
867
|
.option('--force', `[boolean] force the optimizer to ignore the cache and re-bundle`)
|
868
868
|
.action(async (root, options) => {
|
869
869
|
filterDuplicateOptions(options);
|
870
|
-
const { optimizeDeps } = await import('./chunks/dep-
|
870
|
+
const { optimizeDeps } = await import('./chunks/dep-dh3wN_2j.js').then(function (n) { return n.B; });
|
871
871
|
try {
|
872
872
|
const config = await resolveConfig({
|
873
873
|
root,
|
@@ -893,7 +893,7 @@ cli
|
|
893
893
|
.option('--outDir <dir>', `[string] output directory (default: dist)`)
|
894
894
|
.action(async (root, options) => {
|
895
895
|
filterDuplicateOptions(options);
|
896
|
-
const { preview } = await import('./chunks/dep-
|
896
|
+
const { preview } = await import('./chunks/dep-dh3wN_2j.js').then(function (n) { return n.D; });
|
897
897
|
try {
|
898
898
|
const server = await preview({
|
899
899
|
root,
|
package/dist/node/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { parseAst, parseAstAsync } from 'rollup/parseAst';
|
2
|
-
import { i as isInNodeModules } from './chunks/dep-
|
3
|
-
export { b as build, e as buildErrorMessage, h as createFilter, k as createLogger, c as createServer, d as defineConfig, f as formatPostcssSourceMap, u as isFileServingAllowed, l as loadConfigFromFile, v as loadEnv, g as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, a as preprocessCSS, p as preview, r as resolveConfig, w as resolveEnvPrefix, q as searchForWorkspaceRoot, j as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-
|
2
|
+
import { i as isInNodeModules } from './chunks/dep-dh3wN_2j.js';
|
3
|
+
export { b as build, e as buildErrorMessage, h as createFilter, k as createLogger, c as createServer, d as defineConfig, f as formatPostcssSourceMap, u as isFileServingAllowed, l as loadConfigFromFile, v as loadEnv, g as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, a as preprocessCSS, p as preview, r as resolveConfig, w as resolveEnvPrefix, q as searchForWorkspaceRoot, j as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-dh3wN_2j.js';
|
4
4
|
export { VERSION as version } from './constants.js';
|
5
5
|
export { version as esbuildVersion } from 'esbuild';
|
6
6
|
export { VERSION as rollupVersion } from 'rollup';
|