vite 6.3.2 → 6.3.4
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-DG3BLbPj.js → dep-Bn81Esdm.js} +132 -65
- package/dist/node/chunks/{dep-C8joxBaX.js → dep-D5ITTxnT.js} +1 -1
- package/dist/node/chunks/{dep-Cjqet4Sp.js → dep-SOJpRpBL.js} +1 -1
- package/dist/node/cli.js +5 -5
- package/dist/node/index.d.ts +3 -11
- package/dist/node/index.js +2 -2
- package/package.json +3 -3
@@ -10559,7 +10559,7 @@ async function fileToBuiltUrl(pluginContext, id, skipPublicCheck = false, forceI
|
|
10559
10559
|
if (cached) {
|
10560
10560
|
return cached;
|
10561
10561
|
}
|
10562
|
-
|
10562
|
+
let { file, postfix } = splitFileAndPostfix(id);
|
10563
10563
|
const content = await fsp.readFile(file);
|
10564
10564
|
let url;
|
10565
10565
|
if (shouldInline(environment, file, id, content, pluginContext, forceInline)) {
|
@@ -10575,6 +10575,9 @@ async function fileToBuiltUrl(pluginContext, id, skipPublicCheck = false, forceI
|
|
10575
10575
|
originalFileName,
|
10576
10576
|
source: content
|
10577
10577
|
});
|
10578
|
+
if (environment.config.command === "build" && noInlineRE.test(postfix)) {
|
10579
|
+
postfix = postfix.replace(noInlineRE, "").replace(/^&/, "?");
|
10580
|
+
}
|
10578
10581
|
url = `__VITE_ASSET__${referenceId}__${postfix ? `$_${postfix}__` : ``}`;
|
10579
10582
|
}
|
10580
10583
|
cache.set(id, url);
|
@@ -13023,7 +13026,7 @@ function esbuildCjsExternalPlugin(externals, platform) {
|
|
13023
13026
|
(args) => ({
|
13024
13027
|
contents: `import * as m from ${JSON.stringify(
|
13025
13028
|
nonFacadePrefix + args.path
|
13026
|
-
)};module.exports = m;`
|
13029
|
+
)};module.exports = { ...m };`
|
13027
13030
|
})
|
13028
13031
|
);
|
13029
13032
|
}
|
@@ -25653,14 +25656,40 @@ async function ssrTransformScript(code, inMap, url, originalCode) {
|
|
25653
25656
|
}
|
25654
25657
|
const imports = [];
|
25655
25658
|
const exports = [];
|
25659
|
+
const reExportImportIdMap = /* @__PURE__ */ new Map();
|
25656
25660
|
for (const node of ast.body) {
|
25657
25661
|
if (node.type === "ImportDeclaration") {
|
25658
25662
|
imports.push(node);
|
25659
|
-
} else if (node.type === "
|
25663
|
+
} else if (node.type === "ExportDefaultDeclaration") {
|
25664
|
+
exports.push(node);
|
25665
|
+
} else if (node.type === "ExportNamedDeclaration" || node.type === "ExportAllDeclaration") {
|
25666
|
+
imports.push(node);
|
25660
25667
|
exports.push(node);
|
25661
25668
|
}
|
25662
25669
|
}
|
25663
25670
|
for (const node of imports) {
|
25671
|
+
if (node.type === "ExportNamedDeclaration") {
|
25672
|
+
if (node.source) {
|
25673
|
+
const importId2 = defineImport(
|
25674
|
+
hoistIndex,
|
25675
|
+
node,
|
25676
|
+
{
|
25677
|
+
importedNames: node.specifiers.map(
|
25678
|
+
(s2) => getIdentifierNameOrLiteralValue$1(s2.local)
|
25679
|
+
)
|
25680
|
+
}
|
25681
|
+
);
|
25682
|
+
reExportImportIdMap.set(node, importId2);
|
25683
|
+
}
|
25684
|
+
continue;
|
25685
|
+
}
|
25686
|
+
if (node.type === "ExportAllDeclaration") {
|
25687
|
+
if (node.source) {
|
25688
|
+
const importId2 = defineImport(hoistIndex, node);
|
25689
|
+
reExportImportIdMap.set(node, importId2);
|
25690
|
+
}
|
25691
|
+
continue;
|
25692
|
+
}
|
25664
25693
|
const importId = defineImport(hoistIndex, node, {
|
25665
25694
|
importedNames: node.specifiers.map((s2) => {
|
25666
25695
|
if (s2.type === "ImportSpecifier")
|
@@ -25703,17 +25732,8 @@ async function ssrTransformScript(code, inMap, url, originalCode) {
|
|
25703
25732
|
}
|
25704
25733
|
s.remove(node.start, node.declaration.start);
|
25705
25734
|
} else {
|
25706
|
-
s.remove(node.start, node.end);
|
25707
25735
|
if (node.source) {
|
25708
|
-
const importId =
|
25709
|
-
node.start,
|
25710
|
-
node,
|
25711
|
-
{
|
25712
|
-
importedNames: node.specifiers.map(
|
25713
|
-
(s2) => getIdentifierNameOrLiteralValue$1(s2.local)
|
25714
|
-
)
|
25715
|
-
}
|
25716
|
-
);
|
25736
|
+
const importId = reExportImportIdMap.get(node);
|
25717
25737
|
for (const spec of node.specifiers) {
|
25718
25738
|
const exportedAs = getIdentifierNameOrLiteralValue$1(
|
25719
25739
|
spec.exported
|
@@ -25728,6 +25748,7 @@ async function ssrTransformScript(code, inMap, url, originalCode) {
|
|
25728
25748
|
}
|
25729
25749
|
}
|
25730
25750
|
} else {
|
25751
|
+
s.remove(node.start, node.end);
|
25731
25752
|
for (const spec of node.specifiers) {
|
25732
25753
|
const local = spec.local.name;
|
25733
25754
|
const binding = idToImportMap.get(local);
|
@@ -25748,20 +25769,19 @@ async function ssrTransformScript(code, inMap, url, originalCode) {
|
|
25748
25769
|
node.start + 15
|
25749
25770
|
/* 'export default '.length */
|
25750
25771
|
);
|
25751
|
-
|
25752
|
-
`
|
25753
|
-
Object.defineProperty(${ssrModuleExportsKey}, "default", { enumerable: true, configurable: true, value: ${name} });`
|
25754
|
-
);
|
25772
|
+
defineExport("default", name);
|
25755
25773
|
} else {
|
25774
|
+
const name = `__vite_ssr_export_default__`;
|
25756
25775
|
s.update(
|
25757
25776
|
node.start,
|
25758
25777
|
node.start + 14,
|
25759
|
-
|
25778
|
+
`const ${name} =`
|
25760
25779
|
);
|
25780
|
+
defineExport("default", name);
|
25761
25781
|
}
|
25762
25782
|
}
|
25763
25783
|
if (node.type === "ExportAllDeclaration") {
|
25764
|
-
const importId =
|
25784
|
+
const importId = reExportImportIdMap.get(node);
|
25765
25785
|
if (node.exported) {
|
25766
25786
|
const exportedAs = getIdentifierNameOrLiteralValue$1(
|
25767
25787
|
node.exported
|
@@ -35328,8 +35348,11 @@ function sirv (dir, opts={}) {
|
|
35328
35348
|
}
|
35329
35349
|
|
35330
35350
|
const knownJavascriptExtensionRE = /\.(?:[tj]sx?|[cm][tj]s)$/;
|
35351
|
+
const ERR_DENIED_FILE = "ERR_DENIED_FILE";
|
35331
35352
|
const sirvOptions = ({
|
35332
|
-
|
35353
|
+
config,
|
35354
|
+
getHeaders,
|
35355
|
+
disableFsServeCheck
|
35333
35356
|
}) => {
|
35334
35357
|
return {
|
35335
35358
|
dev: true,
|
@@ -35345,6 +35368,19 @@ const sirvOptions = ({
|
|
35345
35368
|
res.setHeader(name, headers[name]);
|
35346
35369
|
}
|
35347
35370
|
}
|
35371
|
+
},
|
35372
|
+
shouldServe: disableFsServeCheck ? void 0 : (filePath) => {
|
35373
|
+
const servingAccessResult = checkLoadingAccess(config, filePath);
|
35374
|
+
if (servingAccessResult === "denied") {
|
35375
|
+
const error = new Error("denied access");
|
35376
|
+
error.code = ERR_DENIED_FILE;
|
35377
|
+
error.path = filePath;
|
35378
|
+
throw error;
|
35379
|
+
}
|
35380
|
+
if (servingAccessResult === "fallback") {
|
35381
|
+
return false;
|
35382
|
+
}
|
35383
|
+
return true;
|
35348
35384
|
}
|
35349
35385
|
};
|
35350
35386
|
};
|
@@ -35353,7 +35389,9 @@ function servePublicMiddleware(server, publicFiles) {
|
|
35353
35389
|
const serve = sirv(
|
35354
35390
|
dir,
|
35355
35391
|
sirvOptions({
|
35356
|
-
|
35392
|
+
config: server.config,
|
35393
|
+
getHeaders: () => server.config.server.headers,
|
35394
|
+
disableFsServeCheck: true
|
35357
35395
|
})
|
35358
35396
|
);
|
35359
35397
|
const toFilePath = (url) => {
|
@@ -35379,6 +35417,7 @@ function serveStaticMiddleware(server) {
|
|
35379
35417
|
const serve = sirv(
|
35380
35418
|
dir,
|
35381
35419
|
sirvOptions({
|
35420
|
+
config: server.config,
|
35382
35421
|
getHeaders: () => server.config.server.headers
|
35383
35422
|
})
|
35384
35423
|
);
|
@@ -35409,38 +35448,46 @@ function serveStaticMiddleware(server) {
|
|
35409
35448
|
if (resolvedPathname.endsWith("/") && fileUrl[fileUrl.length - 1] !== "/") {
|
35410
35449
|
fileUrl = withTrailingSlash(fileUrl);
|
35411
35450
|
}
|
35412
|
-
if (!ensureServingAccess(fileUrl, server, res, next)) {
|
35413
|
-
return;
|
35414
|
-
}
|
35415
35451
|
if (redirectedPathname) {
|
35416
35452
|
url.pathname = encodeURI(redirectedPathname);
|
35417
35453
|
req.url = url.href.slice(url.origin.length);
|
35418
35454
|
}
|
35419
|
-
|
35455
|
+
try {
|
35456
|
+
serve(req, res, next);
|
35457
|
+
} catch (e) {
|
35458
|
+
if (e && "code" in e && e.code === ERR_DENIED_FILE) {
|
35459
|
+
respondWithAccessDenied(e.path, server, res);
|
35460
|
+
return;
|
35461
|
+
}
|
35462
|
+
throw e;
|
35463
|
+
}
|
35420
35464
|
};
|
35421
35465
|
}
|
35422
35466
|
function serveRawFsMiddleware(server) {
|
35423
35467
|
const serveFromRoot = sirv(
|
35424
35468
|
"/",
|
35425
|
-
sirvOptions({
|
35469
|
+
sirvOptions({
|
35470
|
+
config: server.config,
|
35471
|
+
getHeaders: () => server.config.server.headers
|
35472
|
+
})
|
35426
35473
|
);
|
35427
35474
|
return function viteServeRawFsMiddleware(req, res, next) {
|
35428
35475
|
if (req.url.startsWith(FS_PREFIX)) {
|
35429
35476
|
const url = new URL(req.url, "http://example.com");
|
35430
35477
|
const pathname = decodeURI(url.pathname);
|
35431
|
-
if (!ensureServingAccess(
|
35432
|
-
slash$1(path$b.resolve(fsPathFromId(pathname))),
|
35433
|
-
server,
|
35434
|
-
res,
|
35435
|
-
next
|
35436
|
-
)) {
|
35437
|
-
return;
|
35438
|
-
}
|
35439
35478
|
let newPathname = pathname.slice(FS_PREFIX.length);
|
35440
35479
|
if (isWindows$3) newPathname = newPathname.replace(/^[A-Z]:/i, "");
|
35441
35480
|
url.pathname = encodeURI(newPathname);
|
35442
35481
|
req.url = url.href.slice(url.origin.length);
|
35443
|
-
|
35482
|
+
try {
|
35483
|
+
serveFromRoot(req, res, next);
|
35484
|
+
} catch (e) {
|
35485
|
+
if (e && "code" in e && e.code === ERR_DENIED_FILE) {
|
35486
|
+
respondWithAccessDenied(e.path, server, res);
|
35487
|
+
return;
|
35488
|
+
}
|
35489
|
+
throw e;
|
35490
|
+
}
|
35444
35491
|
} else {
|
35445
35492
|
next();
|
35446
35493
|
}
|
@@ -35464,25 +35511,35 @@ function isFileLoadingAllowed(config, filePath) {
|
|
35464
35511
|
if (fs.allow.some((uri) => isUriInFilePath(uri, filePath))) return true;
|
35465
35512
|
return false;
|
35466
35513
|
}
|
35467
|
-
function
|
35514
|
+
function checkLoadingAccess(config, path2) {
|
35515
|
+
if (isFileLoadingAllowed(config, slash$1(path2))) {
|
35516
|
+
return "allowed";
|
35517
|
+
}
|
35518
|
+
if (isFileReadable(path2)) {
|
35519
|
+
return "denied";
|
35520
|
+
}
|
35521
|
+
return "fallback";
|
35522
|
+
}
|
35523
|
+
function checkServingAccess(url, server) {
|
35468
35524
|
if (isFileServingAllowed(url, server)) {
|
35469
|
-
return
|
35525
|
+
return "allowed";
|
35470
35526
|
}
|
35471
35527
|
if (isFileReadable(cleanUrl(url))) {
|
35472
|
-
|
35473
|
-
|
35528
|
+
return "denied";
|
35529
|
+
}
|
35530
|
+
return "fallback";
|
35531
|
+
}
|
35532
|
+
function respondWithAccessDenied(url, server, res) {
|
35533
|
+
const urlMessage = `The request url "${url}" is outside of Vite serving allow list.`;
|
35534
|
+
const hintMessage = `
|
35474
35535
|
${server.config.server.fs.allow.map((i) => `- ${i}`).join("\n")}
|
35475
35536
|
|
35476
35537
|
Refer to docs https://vite.dev/config/server-options.html#server-fs-allow for configurations and more details.`;
|
35477
|
-
|
35478
|
-
|
35479
|
-
|
35480
|
-
|
35481
|
-
|
35482
|
-
} else {
|
35483
|
-
next();
|
35484
|
-
}
|
35485
|
-
return false;
|
35538
|
+
server.config.logger.error(urlMessage);
|
35539
|
+
server.config.logger.warnOnce(hintMessage + "\n");
|
35540
|
+
res.statusCode = 403;
|
35541
|
+
res.write(renderRestrictedErrorHTML(urlMessage + "\n" + hintMessage));
|
35542
|
+
res.end();
|
35486
35543
|
}
|
35487
35544
|
function renderRestrictedErrorHTML(msg) {
|
35488
35545
|
const html = String.raw;
|
@@ -37060,7 +37117,18 @@ const rawRE = /[?&]raw\b/;
|
|
37060
37117
|
const inlineRE$2 = /[?&]inline\b/;
|
37061
37118
|
const svgRE = /\.svg\b/;
|
37062
37119
|
function deniedServingAccessForTransform(url, server, res, next) {
|
37063
|
-
|
37120
|
+
if (rawRE.test(url) || urlRE.test(url) || inlineRE$2.test(url) || svgRE.test(url)) {
|
37121
|
+
const servingAccessResult = checkServingAccess(url, server);
|
37122
|
+
if (servingAccessResult === "denied") {
|
37123
|
+
respondWithAccessDenied(url, server, res);
|
37124
|
+
return true;
|
37125
|
+
}
|
37126
|
+
if (servingAccessResult === "fallback") {
|
37127
|
+
next();
|
37128
|
+
return true;
|
37129
|
+
}
|
37130
|
+
}
|
37131
|
+
return false;
|
37064
37132
|
}
|
37065
37133
|
function cachedTransformMiddleware(server) {
|
37066
37134
|
return function viteCachedTransformMiddleware(req, res, next) {
|
@@ -37096,6 +37164,12 @@ function transformMiddleware(server) {
|
|
37096
37164
|
"\0"
|
37097
37165
|
);
|
37098
37166
|
} catch (e) {
|
37167
|
+
if (e instanceof URIError) {
|
37168
|
+
server.config.logger.warn(
|
37169
|
+
colors$1.yellow("Malformed URI sequence in request URL")
|
37170
|
+
);
|
37171
|
+
return next();
|
37172
|
+
}
|
37099
37173
|
return next(e);
|
37100
37174
|
}
|
37101
37175
|
const withoutQuery = cleanUrl(url);
|
@@ -43446,6 +43520,7 @@ function getEmptyChunkReplacer(pureCssChunkNames, outputFormat) {
|
|
43446
43520
|
}
|
43447
43521
|
);
|
43448
43522
|
}
|
43523
|
+
const fileURLWithWindowsDriveRE = /^file:\/\/\/[a-zA-Z]:\//;
|
43449
43524
|
function createCSSResolvers(config) {
|
43450
43525
|
let cssResolve;
|
43451
43526
|
let sassResolve;
|
@@ -43475,7 +43550,7 @@ function createCSSResolvers(config) {
|
|
43475
43550
|
args[1] = fileURLToPath$1(args[1], {
|
43476
43551
|
windows: (
|
43477
43552
|
// file:///foo cannot be converted to path with windows mode
|
43478
|
-
isWindows$3 && args[1]
|
43553
|
+
isWindows$3 && !fileURLWithWindowsDriveRE.test(args[1]) ? false : void 0
|
43479
43554
|
)
|
43480
43555
|
});
|
43481
43556
|
}
|
@@ -43837,8 +43912,8 @@ function createCachedImport(imp) {
|
|
43837
43912
|
return cached;
|
43838
43913
|
};
|
43839
43914
|
}
|
43840
|
-
const importPostcssImport = createCachedImport(() => import('./dep-
|
43841
|
-
const importPostcssModules = createCachedImport(() => import('./dep-
|
43915
|
+
const importPostcssImport = createCachedImport(() => import('./dep-SOJpRpBL.js').then(function (n) { return n.i; }));
|
43916
|
+
const importPostcssModules = createCachedImport(() => import('./dep-D5ITTxnT.js').then(function (n) { return n.i; }));
|
43842
43917
|
const importPostcss = createCachedImport(() => import('postcss'));
|
43843
43918
|
const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
|
43844
43919
|
let alwaysFakeWorkerWorkerControllerCache;
|
@@ -45392,19 +45467,11 @@ function buildImportAnalysisPlugin(config) {
|
|
45392
45467
|
if (code.indexOf(isModernFlag) > -1) {
|
45393
45468
|
const re = new RegExp(isModernFlag, "g");
|
45394
45469
|
const isModern = String(format === "es");
|
45395
|
-
|
45396
|
-
|
45397
|
-
|
45398
|
-
|
45399
|
-
|
45400
|
-
}
|
45401
|
-
return {
|
45402
|
-
code: s.toString(),
|
45403
|
-
map: s.generateMap({ hires: "boundary" })
|
45404
|
-
};
|
45405
|
-
} else {
|
45406
|
-
return code.replace(re, isModern);
|
45407
|
-
}
|
45470
|
+
const isModernWithPadding = isModern + " ".repeat(isModernFlag.length - isModern.length);
|
45471
|
+
return {
|
45472
|
+
code: code.replace(re, isModernWithPadding),
|
45473
|
+
map: null
|
45474
|
+
};
|
45408
45475
|
}
|
45409
45476
|
return null;
|
45410
45477
|
},
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Q as commonjsGlobal, P as getDefaultExportFromCjs } from './dep-
|
1
|
+
import { Q as commonjsGlobal, P as getDefaultExportFromCjs } from './dep-Bn81Esdm.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-Bn81Esdm.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-Bn81Esdm.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-Bn81Esdm.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-Bn81Esdm.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-Bn81Esdm.js').then(function (n) { return n.U; });
|
913
913
|
try {
|
914
914
|
const server = await preview({
|
915
915
|
root,
|
package/dist/node/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
-
import { PluginHooks, RollupError, SourceMap, ModuleInfo, PartialResolvedId, RollupOptions, InputOption, ModuleFormat, WatcherOptions, RollupOutput, RollupWatcher, InputOptions, CustomPluginOptions, LoadResult, SourceDescription, PluginContextMeta, RollupLog, OutputBundle, OutputChunk, ObjectHook, ResolveIdResult, ExistingRawSourceMap, SourceMapInput, GetManualChunk } from 'rollup';
|
2
|
+
import { PluginHooks, RollupError, SourceMap, ModuleInfo, PartialResolvedId, RollupOptions, InputOption, ModuleFormat, WatcherOptions, RollupOutput, RollupWatcher, PluginContext, InputOptions, CustomPluginOptions, LoadResult, SourceDescription, PluginContextMeta, RollupLog, OutputBundle, OutputChunk, ObjectHook, ResolveIdResult, TransformPluginContext, ExistingRawSourceMap, SourceMapInput, GetManualChunk } from 'rollup';
|
3
3
|
import * as rollup from 'rollup';
|
4
4
|
export { rollup as Rollup };
|
5
5
|
export { parseAst, parseAstAsync } from 'rollup/parseAst';
|
@@ -3240,12 +3240,6 @@ interface PluginContextExtension {
|
|
3240
3240
|
interface HotUpdatePluginContext {
|
3241
3241
|
environment: DevEnvironment;
|
3242
3242
|
}
|
3243
|
-
interface PluginContext extends rollup.PluginContext, PluginContextExtension {
|
3244
|
-
}
|
3245
|
-
interface ResolveIdPluginContext extends rollup.PluginContext, PluginContextExtension {
|
3246
|
-
}
|
3247
|
-
interface TransformPluginContext extends rollup.TransformPluginContext, PluginContextExtension {
|
3248
|
-
}
|
3249
3243
|
declare module 'rollup' {
|
3250
3244
|
interface MinimalPluginContext extends PluginContextExtension {
|
3251
3245
|
}
|
@@ -3280,7 +3274,7 @@ interface Plugin<A = any> extends rollup.Plugin<A> {
|
|
3280
3274
|
/**
|
3281
3275
|
* extend hooks with ssr flag
|
3282
3276
|
*/
|
3283
|
-
resolveId?: ObjectHook<(this:
|
3277
|
+
resolveId?: ObjectHook<(this: PluginContext, source: string, importer: string | undefined, options: {
|
3284
3278
|
attributes: Record<string, string>;
|
3285
3279
|
custom?: CustomPluginOptions;
|
3286
3280
|
ssr?: boolean;
|
@@ -4202,11 +4196,9 @@ declare function searchForWorkspaceRoot(current: string, root?: string): string;
|
|
4202
4196
|
|
4203
4197
|
/**
|
4204
4198
|
* Check if the url is allowed to be served, via the `server.fs` config.
|
4199
|
+
* @deprecated Use the `isFileLoadingAllowed` function instead.
|
4205
4200
|
*/
|
4206
4201
|
declare function isFileServingAllowed(config: ResolvedConfig, url: string): boolean;
|
4207
|
-
/**
|
4208
|
-
* @deprecated Use the `isFileServingAllowed(config, url)` signature instead.
|
4209
|
-
*/
|
4210
4202
|
declare function isFileServingAllowed(url: string, server: ViteDevServer): boolean;
|
4211
4203
|
declare function isFileLoadingAllowed(config: ResolvedConfig, filePath: string): boolean;
|
4212
4204
|
|
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-Bn81Esdm.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-Bn81Esdm.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';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vite",
|
3
|
-
"version": "6.3.
|
3
|
+
"version": "6.3.4",
|
4
4
|
"type": "module",
|
5
5
|
"license": "MIT",
|
6
6
|
"author": "Evan You",
|
@@ -73,11 +73,11 @@
|
|
73
73
|
"//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
|
74
74
|
"dependencies": {
|
75
75
|
"esbuild": "^0.25.0",
|
76
|
-
"fdir": "^6.4.
|
76
|
+
"fdir": "^6.4.4",
|
77
77
|
"picomatch": "^4.0.2",
|
78
78
|
"postcss": "^8.5.3",
|
79
79
|
"rollup": "^4.34.9",
|
80
|
-
"tinyglobby": "^0.2.
|
80
|
+
"tinyglobby": "^0.2.13"
|
81
81
|
},
|
82
82
|
"optionalDependencies": {
|
83
83
|
"fsevents": "~2.3.3"
|