vite 4.4.0-beta.2 → 4.4.0-beta.3
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as commonjsGlobal, E as getDefaultExportFromCjs } from './dep-
|
|
1
|
+
import { F as commonjsGlobal, E as getDefaultExportFromCjs } from './dep-64acfab2.js';
|
|
2
2
|
import require$$0__default from 'fs';
|
|
3
3
|
import require$$0 from 'postcss';
|
|
4
4
|
import require$$0$1 from 'path';
|
|
@@ -16327,6 +16327,8 @@ function manifestPlugin(config) {
|
|
|
16327
16327
|
}
|
|
16328
16328
|
|
|
16329
16329
|
// This is based on @rollup/plugin-data-uri
|
|
16330
|
+
// MIT Licensed https://github.com/rollup/plugins/blob/master/LICENSE
|
|
16331
|
+
// ref https://github.com/vitejs/vite/issues/1428#issuecomment-757033808
|
|
16330
16332
|
const dataUriRE = /^([^/]+\/[^;,]+)(;base64)?,([\s\S]*)$/;
|
|
16331
16333
|
const base64RE = /base64/i;
|
|
16332
16334
|
const dataUriPrefix = `\0/@data-uri/`;
|
|
@@ -19916,8 +19918,8 @@ function fastqueue (context, worker, concurrency) {
|
|
|
19916
19918
|
|
|
19917
19919
|
var self = {
|
|
19918
19920
|
push: push,
|
|
19919
|
-
drain: noop$
|
|
19920
|
-
saturated: noop$
|
|
19921
|
+
drain: noop$4,
|
|
19922
|
+
saturated: noop$4,
|
|
19921
19923
|
pause: pause,
|
|
19922
19924
|
paused: false,
|
|
19923
19925
|
concurrency: concurrency,
|
|
@@ -19927,7 +19929,7 @@ function fastqueue (context, worker, concurrency) {
|
|
|
19927
19929
|
length: length,
|
|
19928
19930
|
getQueue: getQueue,
|
|
19929
19931
|
unshift: unshift,
|
|
19930
|
-
empty: noop$
|
|
19932
|
+
empty: noop$4,
|
|
19931
19933
|
kill: kill,
|
|
19932
19934
|
killAndDrain: killAndDrain,
|
|
19933
19935
|
error: error
|
|
@@ -19986,7 +19988,7 @@ function fastqueue (context, worker, concurrency) {
|
|
|
19986
19988
|
current.context = context;
|
|
19987
19989
|
current.release = release;
|
|
19988
19990
|
current.value = value;
|
|
19989
|
-
current.callback = done || noop$
|
|
19991
|
+
current.callback = done || noop$4;
|
|
19990
19992
|
current.errorHandler = errorHandler;
|
|
19991
19993
|
|
|
19992
19994
|
if (_running === self.concurrency || self.paused) {
|
|
@@ -20010,7 +20012,7 @@ function fastqueue (context, worker, concurrency) {
|
|
|
20010
20012
|
current.context = context;
|
|
20011
20013
|
current.release = release;
|
|
20012
20014
|
current.value = value;
|
|
20013
|
-
current.callback = done || noop$
|
|
20015
|
+
current.callback = done || noop$4;
|
|
20014
20016
|
|
|
20015
20017
|
if (_running === self.concurrency || self.paused) {
|
|
20016
20018
|
if (queueHead) {
|
|
@@ -20054,14 +20056,14 @@ function fastqueue (context, worker, concurrency) {
|
|
|
20054
20056
|
function kill () {
|
|
20055
20057
|
queueHead = null;
|
|
20056
20058
|
queueTail = null;
|
|
20057
|
-
self.drain = noop$
|
|
20059
|
+
self.drain = noop$4;
|
|
20058
20060
|
}
|
|
20059
20061
|
|
|
20060
20062
|
function killAndDrain () {
|
|
20061
20063
|
queueHead = null;
|
|
20062
20064
|
queueTail = null;
|
|
20063
20065
|
self.drain();
|
|
20064
|
-
self.drain = noop$
|
|
20066
|
+
self.drain = noop$4;
|
|
20065
20067
|
}
|
|
20066
20068
|
|
|
20067
20069
|
function error (handler) {
|
|
@@ -20069,13 +20071,13 @@ function fastqueue (context, worker, concurrency) {
|
|
|
20069
20071
|
}
|
|
20070
20072
|
}
|
|
20071
20073
|
|
|
20072
|
-
function noop$
|
|
20074
|
+
function noop$4 () {}
|
|
20073
20075
|
|
|
20074
20076
|
function Task () {
|
|
20075
20077
|
this.value = null;
|
|
20076
|
-
this.callback = noop$
|
|
20078
|
+
this.callback = noop$4;
|
|
20077
20079
|
this.next = null;
|
|
20078
|
-
this.release = noop$
|
|
20080
|
+
this.release = noop$4;
|
|
20079
20081
|
this.context = null;
|
|
20080
20082
|
this.errorHandler = null;
|
|
20081
20083
|
|
|
@@ -20086,7 +20088,7 @@ function Task () {
|
|
|
20086
20088
|
var errorHandler = self.errorHandler;
|
|
20087
20089
|
var val = self.value;
|
|
20088
20090
|
self.value = null;
|
|
20089
|
-
self.callback = noop$
|
|
20091
|
+
self.callback = noop$4;
|
|
20090
20092
|
if (self.errorHandler) {
|
|
20091
20093
|
errorHandler(err, val);
|
|
20092
20094
|
}
|
|
@@ -20134,7 +20136,7 @@ function queueAsPromised (context, worker, concurrency) {
|
|
|
20134
20136
|
// Let's fork the promise chain to
|
|
20135
20137
|
// make the error bubble up to the user but
|
|
20136
20138
|
// not lead to a unhandledRejection
|
|
20137
|
-
p.catch(noop$
|
|
20139
|
+
p.catch(noop$4);
|
|
20138
20140
|
|
|
20139
20141
|
return p
|
|
20140
20142
|
}
|
|
@@ -20153,7 +20155,7 @@ function queueAsPromised (context, worker, concurrency) {
|
|
|
20153
20155
|
// Let's fork the promise chain to
|
|
20154
20156
|
// make the error bubble up to the user but
|
|
20155
20157
|
// not lead to a unhandledRejection
|
|
20156
|
-
p.catch(noop$
|
|
20158
|
+
p.catch(noop$4);
|
|
20157
20159
|
|
|
20158
20160
|
return p
|
|
20159
20161
|
}
|
|
@@ -27240,6 +27242,7 @@ function stringifyQuery(query) {
|
|
|
27240
27242
|
return Object.keys(query).filter((k) => query[k] !== void 0).map((k) => encodeQueryItem(k, query[k])).join("&");
|
|
27241
27243
|
}
|
|
27242
27244
|
|
|
27245
|
+
new Set(builtinModules);
|
|
27243
27246
|
function matchAll(regex, string, addition) {
|
|
27244
27247
|
const matches = [];
|
|
27245
27248
|
for (const match of string.matchAll(regex)) {
|
|
@@ -36059,6 +36062,7 @@ var YAML = {
|
|
|
36059
36062
|
};
|
|
36060
36063
|
|
|
36061
36064
|
// `export * as default from ...` fails on Webpack v4
|
|
36065
|
+
// https://github.com/eemeli/yaml/issues/228
|
|
36062
36066
|
|
|
36063
36067
|
var browser$2 = {
|
|
36064
36068
|
__proto__: null,
|
|
@@ -37475,6 +37479,7 @@ function buildHtmlPlugin(config) {
|
|
|
37475
37479
|
},
|
|
37476
37480
|
async generateBundle(options, bundle) {
|
|
37477
37481
|
const analyzedChunk = new Map();
|
|
37482
|
+
const inlineEntryChunk = new Set();
|
|
37478
37483
|
const getImportedChunks = (chunk, seen = new Set()) => {
|
|
37479
37484
|
const chunks = [];
|
|
37480
37485
|
chunk.imports.forEach((file) => {
|
|
@@ -37629,8 +37634,7 @@ function buildHtmlPlugin(config) {
|
|
|
37629
37634
|
: normalizePath$3(publicAssetPath);
|
|
37630
37635
|
});
|
|
37631
37636
|
if (chunk && canInlineEntry) {
|
|
37632
|
-
|
|
37633
|
-
delete bundle[chunk.fileName];
|
|
37637
|
+
inlineEntryChunk.add(chunk.fileName);
|
|
37634
37638
|
}
|
|
37635
37639
|
const shortEmitName = normalizePath$3(path$o.relative(config.root, id));
|
|
37636
37640
|
this.emitFile({
|
|
@@ -37639,6 +37643,10 @@ function buildHtmlPlugin(config) {
|
|
|
37639
37643
|
source: result,
|
|
37640
37644
|
});
|
|
37641
37645
|
}
|
|
37646
|
+
for (const fileName of inlineEntryChunk) {
|
|
37647
|
+
// all imports from entry have been inlined to html, prevent rollup from outputting it
|
|
37648
|
+
delete bundle[fileName];
|
|
37649
|
+
}
|
|
37642
37650
|
},
|
|
37643
37651
|
};
|
|
37644
37652
|
}
|
|
@@ -38663,8 +38671,8 @@ function createCachedImport(imp) {
|
|
|
38663
38671
|
return cached;
|
|
38664
38672
|
};
|
|
38665
38673
|
}
|
|
38666
|
-
const importPostcssImport = createCachedImport(() => import('./dep-
|
|
38667
|
-
const importPostcssModules = createCachedImport(() => import('./dep-
|
|
38674
|
+
const importPostcssImport = createCachedImport(() => import('./dep-b7b4ad40.js').then(function (n) { return n.i; }));
|
|
38675
|
+
const importPostcssModules = createCachedImport(() => import('./dep-1e80dfe0.js').then(function (n) { return n.i; }));
|
|
38668
38676
|
const importPostcss = createCachedImport(() => import('postcss'));
|
|
38669
38677
|
/**
|
|
38670
38678
|
* @experimental
|
|
@@ -40171,6 +40179,7 @@ function throwOutdatedRequest(id) {
|
|
|
40171
40179
|
|
|
40172
40180
|
// AST walker module for Mozilla Parser API compatible trees
|
|
40173
40181
|
|
|
40182
|
+
|
|
40174
40183
|
function makeTest(test) {
|
|
40175
40184
|
if (typeof test === "string")
|
|
40176
40185
|
{ return function (type) { return type === test; } }
|
|
@@ -43371,7 +43380,7 @@ function prepareError(err) {
|
|
|
43371
43380
|
id: err.id,
|
|
43372
43381
|
frame: stripAnsi(err.frame || ''),
|
|
43373
43382
|
plugin: err.plugin,
|
|
43374
|
-
pluginCode: err.pluginCode,
|
|
43383
|
+
pluginCode: err.pluginCode?.toString(),
|
|
43375
43384
|
loc: err.loc,
|
|
43376
43385
|
};
|
|
43377
43386
|
}
|
|
@@ -43440,6 +43449,32 @@ function errorMiddleware(server, allowNext = false) {
|
|
|
43440
43449
|
* This file is refactored into TypeScript based on
|
|
43441
43450
|
* https://github.com/preactjs/wmr/blob/main/packages/wmr/src/lib/rollup-plugin-container.js
|
|
43442
43451
|
*/
|
|
43452
|
+
/**
|
|
43453
|
+
https://github.com/preactjs/wmr/blob/master/LICENSE
|
|
43454
|
+
|
|
43455
|
+
MIT License
|
|
43456
|
+
|
|
43457
|
+
Copyright (c) 2020 The Preact Authors
|
|
43458
|
+
|
|
43459
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
43460
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
43461
|
+
in the Software without restriction, including without limitation the rights
|
|
43462
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
43463
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
43464
|
+
furnished to do so, subject to the following conditions:
|
|
43465
|
+
|
|
43466
|
+
The above copyright notice and this permission notice shall be included in all
|
|
43467
|
+
copies or substantial portions of the Software.
|
|
43468
|
+
|
|
43469
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
43470
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
43471
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
43472
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
43473
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
43474
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
43475
|
+
SOFTWARE.
|
|
43476
|
+
*/
|
|
43477
|
+
const noop$3 = () => { };
|
|
43443
43478
|
const ERR_CLOSED_SERVER = 'ERR_CLOSED_SERVER';
|
|
43444
43479
|
function throwClosedServerError() {
|
|
43445
43480
|
const err = new Error('The server is being restarted or closed. Request is outdated');
|
|
@@ -43471,6 +43506,11 @@ async function createPluginContainer(config, moduleGraph, watcher) {
|
|
|
43471
43506
|
rollupVersion: VERSION,
|
|
43472
43507
|
watchMode: true,
|
|
43473
43508
|
},
|
|
43509
|
+
debug: noop$3,
|
|
43510
|
+
info: noop$3,
|
|
43511
|
+
warn: noop$3,
|
|
43512
|
+
// @ts-expect-error noop
|
|
43513
|
+
error: noop$3,
|
|
43474
43514
|
};
|
|
43475
43515
|
function warnIncompatibleMethod(method, plugin) {
|
|
43476
43516
|
logger.warn(colors$1.cyan(`[plugin:${plugin}] `) +
|
|
@@ -43543,6 +43583,8 @@ async function createPluginContainer(config, moduleGraph, watcher) {
|
|
|
43543
43583
|
this._activeId = null;
|
|
43544
43584
|
this._activeCode = null;
|
|
43545
43585
|
this._addedImports = null;
|
|
43586
|
+
this.debug = noop$3;
|
|
43587
|
+
this.info = noop$3;
|
|
43546
43588
|
this._activePlugin = initialPlugin || null;
|
|
43547
43589
|
}
|
|
43548
43590
|
parse(code, opts = {}) {
|
|
@@ -43615,7 +43657,7 @@ async function createPluginContainer(config, moduleGraph, watcher) {
|
|
|
43615
43657
|
return '';
|
|
43616
43658
|
}
|
|
43617
43659
|
warn(e, position) {
|
|
43618
|
-
const err = formatError(e, position, this);
|
|
43660
|
+
const err = formatError(typeof e === 'function' ? e() : e, position, this);
|
|
43619
43661
|
const msg = buildErrorMessage(err, [colors$1.yellow(`warning: ${err.message}`)], false);
|
|
43620
43662
|
logger.warn(msg, {
|
|
43621
43663
|
clear: true,
|
|
@@ -43712,7 +43754,7 @@ async function createPluginContainer(config, moduleGraph, watcher) {
|
|
|
43712
43754
|
}
|
|
43713
43755
|
}
|
|
43714
43756
|
if (code) {
|
|
43715
|
-
err.frame = generateCodeFrame(code
|
|
43757
|
+
err.frame = generateCodeFrame(`${code}`, err.loc);
|
|
43716
43758
|
}
|
|
43717
43759
|
}
|
|
43718
43760
|
}
|
|
@@ -46205,7 +46247,7 @@ function buildImportAnalysisPlugin(config) {
|
|
|
46205
46247
|
imports = parse$e(source)[0];
|
|
46206
46248
|
}
|
|
46207
46249
|
catch (e) {
|
|
46208
|
-
this.error(e
|
|
46250
|
+
this.error(e);
|
|
46209
46251
|
}
|
|
46210
46252
|
if (!imports.length) {
|
|
46211
46253
|
return null;
|
|
@@ -46378,7 +46420,7 @@ function buildImportAnalysisPlugin(config) {
|
|
|
46378
46420
|
imports = parse$e(code)[0].filter((i) => i.d > -1);
|
|
46379
46421
|
}
|
|
46380
46422
|
catch (e) {
|
|
46381
|
-
this.error(e
|
|
46423
|
+
this.error(e);
|
|
46382
46424
|
}
|
|
46383
46425
|
const s = new MagicString(code);
|
|
46384
46426
|
const rewroteMarkerStartPos = new Set(); // position of the leading double quote
|
|
@@ -46560,7 +46602,7 @@ function ssrManifestPlugin(config) {
|
|
|
46560
46602
|
imports = parse$e(code)[0].filter((i) => i.n && i.d > -1);
|
|
46561
46603
|
}
|
|
46562
46604
|
catch (e) {
|
|
46563
|
-
this.error(e
|
|
46605
|
+
this.error(e);
|
|
46564
46606
|
}
|
|
46565
46607
|
if (imports.length) {
|
|
46566
46608
|
for (let index = 0; index < imports.length; index++) {
|
|
@@ -47722,31 +47764,42 @@ const dynamicImportWarningIgnoreList = [
|
|
|
47722
47764
|
`statically analyzed`,
|
|
47723
47765
|
];
|
|
47724
47766
|
function onRollupWarning(warning, warn, config) {
|
|
47725
|
-
|
|
47726
|
-
|
|
47727
|
-
|
|
47728
|
-
|
|
47729
|
-
// throw unless it's commonjs external...
|
|
47730
|
-
if (!id || !/\?commonjs-external$/.test(id)) {
|
|
47731
|
-
throw new Error(`[vite]: Rollup failed to resolve import "${exporter}" from "${id}".\n` +
|
|
47732
|
-
`This is most likely unintended because it can break your application at runtime.\n` +
|
|
47733
|
-
`If you do want to externalize this module explicitly add it to\n` +
|
|
47734
|
-
`\`build.rollupOptions.external\``);
|
|
47735
|
-
}
|
|
47736
|
-
}
|
|
47737
|
-
if (warning.plugin === 'rollup-plugin-dynamic-import-variables' &&
|
|
47738
|
-
dynamicImportWarningIgnoreList.some((msg) => warning.message.includes(msg))) {
|
|
47739
|
-
return;
|
|
47740
|
-
}
|
|
47741
|
-
if (warningIgnoreList.includes(warning.code)) {
|
|
47742
|
-
return;
|
|
47767
|
+
const viteWarn = (warnLog) => {
|
|
47768
|
+
let warning;
|
|
47769
|
+
if (typeof warnLog === 'function') {
|
|
47770
|
+
warning = warnLog();
|
|
47743
47771
|
}
|
|
47744
|
-
|
|
47745
|
-
|
|
47746
|
-
|
|
47772
|
+
else {
|
|
47773
|
+
warning = warnLog;
|
|
47774
|
+
}
|
|
47775
|
+
if (typeof warning === 'object') {
|
|
47776
|
+
if (warning.code === 'UNRESOLVED_IMPORT') {
|
|
47777
|
+
const id = warning.id;
|
|
47778
|
+
const exporter = warning.exporter;
|
|
47779
|
+
// throw unless it's commonjs external...
|
|
47780
|
+
if (!id || !/\?commonjs-external$/.test(id)) {
|
|
47781
|
+
throw new Error(`[vite]: Rollup failed to resolve import "${exporter}" from "${id}".\n` +
|
|
47782
|
+
`This is most likely unintended because it can break your application at runtime.\n` +
|
|
47783
|
+
`If you do want to externalize this module explicitly add it to\n` +
|
|
47784
|
+
`\`build.rollupOptions.external\``);
|
|
47785
|
+
}
|
|
47786
|
+
}
|
|
47787
|
+
if (warning.plugin === 'rollup-plugin-dynamic-import-variables' &&
|
|
47788
|
+
dynamicImportWarningIgnoreList.some((msg) =>
|
|
47789
|
+
// @ts-expect-error warning is RollupLog
|
|
47790
|
+
warning.message.includes(msg))) {
|
|
47791
|
+
return;
|
|
47792
|
+
}
|
|
47793
|
+
if (warningIgnoreList.includes(warning.code)) {
|
|
47794
|
+
return;
|
|
47795
|
+
}
|
|
47796
|
+
if (warning.code === 'PLUGIN_WARNING') {
|
|
47797
|
+
config.logger.warn(`${colors$1.bold(colors$1.yellow(`[plugin:${warning.plugin}]`))} ${colors$1.yellow(warning.message)}`);
|
|
47798
|
+
return;
|
|
47799
|
+
}
|
|
47747
47800
|
}
|
|
47748
|
-
warn(
|
|
47749
|
-
}
|
|
47801
|
+
warn(warnLog);
|
|
47802
|
+
};
|
|
47750
47803
|
const tty = process.stdout.isTTY && !process.env.CI;
|
|
47751
47804
|
if (tty) {
|
|
47752
47805
|
process.stdout.clearLine(0);
|
|
@@ -64943,6 +64996,10 @@ var index = {
|
|
|
64943
64996
|
};
|
|
64944
64997
|
|
|
64945
64998
|
/* eslint-disable */
|
|
64999
|
+
//@ts-nocheck
|
|
65000
|
+
//TODO: replace this code with https://github.com/lukeed/polka/pull/148 once it's released
|
|
65001
|
+
// This is based on https://github.com/preactjs/wmr/blob/main/packages/wmr/src/lib/polkompress.js
|
|
65002
|
+
// MIT Licensed https://github.com/preactjs/wmr/blob/main/LICENSE
|
|
64946
65003
|
/* global Buffer */
|
|
64947
65004
|
const noop = () => { };
|
|
64948
65005
|
const mimes = /text|javascript|\/json|xml/i;
|
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-64acfab2.js';
|
|
6
6
|
import { VERSION } from './constants.js';
|
|
7
7
|
import 'node:fs/promises';
|
|
8
8
|
import 'node:url';
|
|
@@ -728,7 +728,7 @@ cli
|
|
|
728
728
|
filterDuplicateOptions(options);
|
|
729
729
|
// output structure is preserved even after bundling so require()
|
|
730
730
|
// is ok here
|
|
731
|
-
const { createServer } = await import('./chunks/dep-
|
|
731
|
+
const { createServer } = await import('./chunks/dep-64acfab2.js').then(function (n) { return n.I; });
|
|
732
732
|
try {
|
|
733
733
|
const server = await createServer({
|
|
734
734
|
root,
|
|
@@ -806,7 +806,7 @@ cli
|
|
|
806
806
|
.option('-w, --watch', `[boolean] rebuilds when modules have changed on disk`)
|
|
807
807
|
.action(async (root, options) => {
|
|
808
808
|
filterDuplicateOptions(options);
|
|
809
|
-
const { build } = await import('./chunks/dep-
|
|
809
|
+
const { build } = await import('./chunks/dep-64acfab2.js').then(function (n) { return n.H; });
|
|
810
810
|
const buildOptions = cleanOptions(options);
|
|
811
811
|
try {
|
|
812
812
|
await build({
|
|
@@ -834,7 +834,7 @@ cli
|
|
|
834
834
|
.option('--force', `[boolean] force the optimizer to ignore the cache and re-bundle`)
|
|
835
835
|
.action(async (root, options) => {
|
|
836
836
|
filterDuplicateOptions(options);
|
|
837
|
-
const { optimizeDeps } = await import('./chunks/dep-
|
|
837
|
+
const { optimizeDeps } = await import('./chunks/dep-64acfab2.js').then(function (n) { return n.G; });
|
|
838
838
|
try {
|
|
839
839
|
const config = await resolveConfig({
|
|
840
840
|
root,
|
|
@@ -860,7 +860,7 @@ cli
|
|
|
860
860
|
.option('--outDir <dir>', `[string] output directory (default: dist)`)
|
|
861
861
|
.action(async (root, options) => {
|
|
862
862
|
filterDuplicateOptions(options);
|
|
863
|
-
const { preview } = await import('./chunks/dep-
|
|
863
|
+
const { preview } = await import('./chunks/dep-64acfab2.js').then(function (n) { return n.J; });
|
|
864
864
|
try {
|
|
865
865
|
const server = await preview({
|
|
866
866
|
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-64acfab2.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-64acfab2.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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite",
|
|
3
|
-
"version": "4.4.0-beta.
|
|
3
|
+
"version": "4.4.0-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Evan You",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"esbuild": "^0.18.6",
|
|
71
71
|
"postcss": "^8.4.24",
|
|
72
|
-
"rollup": "^3.
|
|
72
|
+
"rollup": "^3.25.2"
|
|
73
73
|
},
|
|
74
74
|
"optionalDependencies": {
|
|
75
75
|
"fsevents": "~2.3.2"
|