vite 2.9.4 → 2.9.7
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.
- package/LICENSE.md +55 -1
- package/dist/node/chunks/{dep-f0683f19.js → dep-0429b5b4.js} +1 -1
- package/dist/node/chunks/{dep-2fd39086.js → dep-88bd5805.js} +37203 -36979
- package/dist/node/chunks/{dep-bcc0af00.js → dep-a9015192.js} +0 -0
- package/dist/node/chunks/{dep-a2c7fba7.js → dep-c7a54f50.js} +1 -1
- package/dist/node/chunks/{dep-b006c17c.js → dep-fb8c3a62.js} +1 -1
- package/dist/node/cli.js +5 -5
- package/dist/node/index.d.ts +6 -5
- package/dist/node/index.js +1 -1
- package/dist/node/terser.js +7932 -6619
- package/package.json +19 -19
|
File without changes
|
package/dist/node/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var require$$0 = require('events');
|
|
4
|
-
var index = require('./chunks/dep-
|
|
4
|
+
var index = require('./chunks/dep-88bd5805.js');
|
|
5
5
|
var perf_hooks = require('perf_hooks');
|
|
6
6
|
require('fs');
|
|
7
7
|
require('path');
|
|
@@ -683,7 +683,7 @@ cli
|
|
|
683
683
|
.action(async (root, options) => {
|
|
684
684
|
// output structure is preserved even after bundling so require()
|
|
685
685
|
// is ok here
|
|
686
|
-
const { createServer } = await Promise.resolve().then(function () { return require('./chunks/dep-
|
|
686
|
+
const { createServer } = await Promise.resolve().then(function () { return require('./chunks/dep-88bd5805.js'); }).then(function (n) { return n.index$1; });
|
|
687
687
|
try {
|
|
688
688
|
const server = await createServer({
|
|
689
689
|
root,
|
|
@@ -732,7 +732,7 @@ cli
|
|
|
732
732
|
.option('--emptyOutDir', `[boolean] force empty outDir when it's outside of root`)
|
|
733
733
|
.option('-w, --watch', `[boolean] rebuilds when modules have changed on disk`)
|
|
734
734
|
.action(async (root, options) => {
|
|
735
|
-
const { build } = await Promise.resolve().then(function () { return require('./chunks/dep-
|
|
735
|
+
const { build } = await Promise.resolve().then(function () { return require('./chunks/dep-88bd5805.js'); }).then(function (n) { return n.build$1; });
|
|
736
736
|
const buildOptions = cleanOptions(options);
|
|
737
737
|
try {
|
|
738
738
|
await build({
|
|
@@ -755,7 +755,7 @@ cli
|
|
|
755
755
|
.command('optimize [root]', 'pre-bundle dependencies')
|
|
756
756
|
.option('--force', `[boolean] force the optimizer to ignore the cache and re-bundle`)
|
|
757
757
|
.action(async (root, options) => {
|
|
758
|
-
const { optimizeDeps } = await Promise.resolve().then(function () { return require('./chunks/dep-
|
|
758
|
+
const { optimizeDeps } = await Promise.resolve().then(function () { return require('./chunks/dep-88bd5805.js'); }).then(function (n) { return n.index; });
|
|
759
759
|
try {
|
|
760
760
|
const config = await index.resolveConfig({
|
|
761
761
|
root,
|
|
@@ -778,7 +778,7 @@ cli
|
|
|
778
778
|
.option('--https', `[boolean] use TLS + HTTP/2`)
|
|
779
779
|
.option('--open [path]', `[boolean | string] open browser on startup`)
|
|
780
780
|
.action(async (root, options) => {
|
|
781
|
-
const { preview } = await Promise.resolve().then(function () { return require('./chunks/dep-
|
|
781
|
+
const { preview } = await Promise.resolve().then(function () { return require('./chunks/dep-88bd5805.js'); }).then(function (n) { return n.preview$1; });
|
|
782
782
|
try {
|
|
783
783
|
const server = await preview({
|
|
784
784
|
root,
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1193,6 +1193,7 @@ export declare class ModuleNode {
|
|
|
1193
1193
|
transformResult: TransformResult | null;
|
|
1194
1194
|
ssrTransformResult: TransformResult | null;
|
|
1195
1195
|
ssrModule: Record<string, any> | null;
|
|
1196
|
+
ssrError: Error | null;
|
|
1196
1197
|
lastHMRTimestamp: number;
|
|
1197
1198
|
lastInvalidationTimestamp: number;
|
|
1198
1199
|
constructor(url: string);
|
|
@@ -1375,12 +1376,10 @@ export declare interface PluginContainer {
|
|
|
1375
1376
|
close(): Promise<void>;
|
|
1376
1377
|
}
|
|
1377
1378
|
|
|
1378
|
-
export declare type PluginOption = Plugin | false | null | undefined;
|
|
1379
|
+
export declare type PluginOption = Plugin | false | null | undefined | PluginOption[];
|
|
1379
1380
|
|
|
1380
1381
|
/**
|
|
1381
1382
|
* Starts the Vite server in preview mode, to simulate a production deployment
|
|
1382
|
-
* @param config - the resolved Vite config
|
|
1383
|
-
* @param serverOptions - what host and port to use
|
|
1384
1383
|
* @experimental
|
|
1385
1384
|
*/
|
|
1386
1385
|
export declare function preview(inlineConfig: InlineConfig): Promise<PreviewServer>;
|
|
@@ -1748,6 +1747,8 @@ export declare interface ServerOptions extends CommonServerOptions {
|
|
|
1748
1747
|
fs?: FileSystemServeOptions;
|
|
1749
1748
|
/**
|
|
1750
1749
|
* Origin for the generated asset URLs.
|
|
1750
|
+
*
|
|
1751
|
+
* @example `http://127.0.0.1:8080`
|
|
1751
1752
|
*/
|
|
1752
1753
|
origin?: string;
|
|
1753
1754
|
/**
|
|
@@ -2031,7 +2032,7 @@ export declare interface UserConfig {
|
|
|
2031
2032
|
/**
|
|
2032
2033
|
* Array of vite plugins to use.
|
|
2033
2034
|
*/
|
|
2034
|
-
plugins?:
|
|
2035
|
+
plugins?: PluginOption[];
|
|
2035
2036
|
/**
|
|
2036
2037
|
* Configure resolver
|
|
2037
2038
|
*/
|
|
@@ -2119,7 +2120,7 @@ export declare interface UserConfig {
|
|
|
2119
2120
|
/**
|
|
2120
2121
|
* Vite plugins that apply to worker bundle
|
|
2121
2122
|
*/
|
|
2122
|
-
plugins?:
|
|
2123
|
+
plugins?: PluginOption[];
|
|
2123
2124
|
/**
|
|
2124
2125
|
* Rollup options to build worker bundle
|
|
2125
2126
|
*/
|