vite 4.4.11 → 4.4.12
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.
|
@@ -38989,8 +38989,8 @@ function createCachedImport(imp) {
|
|
|
38989
38989
|
return cached;
|
|
38990
38990
|
};
|
|
38991
38991
|
}
|
|
38992
|
-
const importPostcssImport = createCachedImport(() => import('./dep-
|
|
38993
|
-
const importPostcssModules = createCachedImport(() => import('./dep-
|
|
38992
|
+
const importPostcssImport = createCachedImport(() => import('./dep-2bac6217.js').then(function (n) { return n.i; }));
|
|
38993
|
+
const importPostcssModules = createCachedImport(() => import('./dep-cadf9240.js').then(function (n) { return n.i; }));
|
|
38994
38994
|
const importPostcss = createCachedImport(() => import('postcss'));
|
|
38995
38995
|
/**
|
|
38996
38996
|
* @experimental
|
|
@@ -64555,7 +64555,6 @@ const processNodeUrl = (attr, sourceCodeLocation, s, config, htmlPath, originalU
|
|
|
64555
64555
|
const devHtmlHook = async (html, { path: htmlPath, filename, server, originalUrl }) => {
|
|
64556
64556
|
const { config, moduleGraph, watcher } = server;
|
|
64557
64557
|
const base = config.base || '/';
|
|
64558
|
-
htmlPath = decodeURI(htmlPath);
|
|
64559
64558
|
let proxyModulePath;
|
|
64560
64559
|
let proxyModuleUrl;
|
|
64561
64560
|
const trailingSlash = htmlPath.endsWith('/');
|
|
@@ -64575,7 +64574,9 @@ const devHtmlHook = async (html, { path: htmlPath, filename, server, originalUrl
|
|
|
64575
64574
|
}
|
|
64576
64575
|
const s = new MagicString(html);
|
|
64577
64576
|
let inlineModuleIndex = -1;
|
|
64578
|
-
|
|
64577
|
+
// The key to the proxyHtml cache is decoded, as it will be compared
|
|
64578
|
+
// against decoded URLs by the HTML plugins.
|
|
64579
|
+
const proxyCacheUrl = decodeURI(cleanUrl(proxyModulePath).replace(normalizePath$3(config.root), ''));
|
|
64579
64580
|
const styleUrl = [];
|
|
64580
64581
|
const addInlineModule = (node, ext) => {
|
|
64581
64582
|
inlineModuleIndex++;
|
|
@@ -64698,7 +64699,13 @@ function indexHtmlMiddleware(server) {
|
|
|
64698
64699
|
function preTransformRequest(server, url, base) {
|
|
64699
64700
|
if (!server.config.server.preTransformRequests)
|
|
64700
64701
|
return;
|
|
64701
|
-
|
|
64702
|
+
try {
|
|
64703
|
+
url = unwrapId(stripBase(decodeURI(url), base));
|
|
64704
|
+
}
|
|
64705
|
+
catch {
|
|
64706
|
+
// ignore
|
|
64707
|
+
return;
|
|
64708
|
+
}
|
|
64702
64709
|
// transform all url as non-ssr as html includes client-side assets only
|
|
64703
64710
|
server.transformRequest(url).catch((e) => {
|
|
64704
64711
|
if (e?.code === ERR_OUTDATED_OPTIMIZED_DEP ||
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as commonjsGlobal, E as getDefaultExportFromCjs } from './dep-
|
|
1
|
+
import { F as commonjsGlobal, E as getDefaultExportFromCjs } from './dep-063880ad.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 { C as colors, D as bindShortcuts, x as createLogger, h as resolveConfig } from './chunks/dep-
|
|
5
|
+
import { C as colors, D as bindShortcuts, x as createLogger, h as resolveConfig } from './chunks/dep-063880ad.js';
|
|
6
6
|
import { VERSION } from './constants.js';
|
|
7
7
|
import 'node:fs/promises';
|
|
8
8
|
import 'node:url';
|
|
@@ -758,7 +758,7 @@ cli
|
|
|
758
758
|
filterDuplicateOptions(options);
|
|
759
759
|
// output structure is preserved even after bundling so require()
|
|
760
760
|
// is ok here
|
|
761
|
-
const { createServer } = await import('./chunks/dep-
|
|
761
|
+
const { createServer } = await import('./chunks/dep-063880ad.js').then(function (n) { return n.I; });
|
|
762
762
|
try {
|
|
763
763
|
const server = await createServer({
|
|
764
764
|
root,
|
|
@@ -836,7 +836,7 @@ cli
|
|
|
836
836
|
.option('-w, --watch', `[boolean] rebuilds when modules have changed on disk`)
|
|
837
837
|
.action(async (root, options) => {
|
|
838
838
|
filterDuplicateOptions(options);
|
|
839
|
-
const { build } = await import('./chunks/dep-
|
|
839
|
+
const { build } = await import('./chunks/dep-063880ad.js').then(function (n) { return n.H; });
|
|
840
840
|
const buildOptions = cleanOptions(options);
|
|
841
841
|
try {
|
|
842
842
|
await build({
|
|
@@ -864,7 +864,7 @@ cli
|
|
|
864
864
|
.option('--force', `[boolean] force the optimizer to ignore the cache and re-bundle`)
|
|
865
865
|
.action(async (root, options) => {
|
|
866
866
|
filterDuplicateOptions(options);
|
|
867
|
-
const { optimizeDeps } = await import('./chunks/dep-
|
|
867
|
+
const { optimizeDeps } = await import('./chunks/dep-063880ad.js').then(function (n) { return n.G; });
|
|
868
868
|
try {
|
|
869
869
|
const config = await resolveConfig({
|
|
870
870
|
root,
|
|
@@ -891,7 +891,7 @@ cli
|
|
|
891
891
|
.option('--outDir <dir>', `[string] output directory (default: dist)`)
|
|
892
892
|
.action(async (root, options) => {
|
|
893
893
|
filterDuplicateOptions(options);
|
|
894
|
-
const { preview } = await import('./chunks/dep-
|
|
894
|
+
const { preview } = await import('./chunks/dep-063880ad.js').then(function (n) { return n.J; });
|
|
895
895
|
try {
|
|
896
896
|
const server = await preview({
|
|
897
897
|
root,
|
package/dist/node/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as isInNodeModules } from './chunks/dep-
|
|
2
|
-
export { b as build, e as buildErrorMessage, v as createFilter, x as createLogger, c as createServer, g as defineConfig, f as formatPostcssSourceMap, k as getDepOptimizationConfig, m as isDepsOptimizerEnabled, z as isFileServingAllowed, l as loadConfigFromFile, A as loadEnv, u as mergeAlias, q as mergeConfig, n as normalizePath, o as optimizeDeps, a as preprocessCSS, p as preview, j as resolveBaseUrl, h as resolveConfig, B as resolveEnvPrefix, d as resolvePackageData, r as resolvePackageEntry, y as searchForWorkspaceRoot, w as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-
|
|
1
|
+
import { i as isInNodeModules } from './chunks/dep-063880ad.js';
|
|
2
|
+
export { b as build, e as buildErrorMessage, v as createFilter, x as createLogger, c as createServer, g as defineConfig, f as formatPostcssSourceMap, k as getDepOptimizationConfig, m as isDepsOptimizerEnabled, z as isFileServingAllowed, l as loadConfigFromFile, A as loadEnv, u as mergeAlias, q as mergeConfig, n as normalizePath, o as optimizeDeps, a as preprocessCSS, p as preview, j as resolveBaseUrl, h as resolveConfig, B as resolveEnvPrefix, d as resolvePackageData, r as resolvePackageEntry, y as searchForWorkspaceRoot, w as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-063880ad.js';
|
|
3
3
|
export { VERSION as version } from './constants.js';
|
|
4
4
|
export { version as esbuildVersion } from 'esbuild';
|
|
5
5
|
export { VERSION as rollupVersion } from 'rollup';
|