vite 2.9.5 → 2.9.6
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/dist/node/chunks/{dep-27bc1ab8.js → dep-3397b401.js} +36888 -36797
- package/dist/node/chunks/{dep-566e34ef.js → dep-60989a1a.js} +1 -1
- package/dist/node/chunks/{dep-17497ab4.js → dep-9a1d6029.js} +1 -1
- package/dist/node/chunks/{dep-e037a5fe.js → dep-a6041359.js} +1 -1
- package/dist/node/cli.js +5 -5
- package/dist/node/index.d.ts +3 -5
- package/dist/node/index.js +1 -1
- package/package.json +10 -10
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-3397b401.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-3397b401.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-3397b401.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-3397b401.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-3397b401.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
|
@@ -1375,12 +1375,10 @@ export declare interface PluginContainer {
|
|
|
1375
1375
|
close(): Promise<void>;
|
|
1376
1376
|
}
|
|
1377
1377
|
|
|
1378
|
-
export declare type PluginOption = Plugin | false | null | undefined;
|
|
1378
|
+
export declare type PluginOption = Plugin | false | null | undefined | PluginOption[];
|
|
1379
1379
|
|
|
1380
1380
|
/**
|
|
1381
1381
|
* 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
1382
|
* @experimental
|
|
1385
1383
|
*/
|
|
1386
1384
|
export declare function preview(inlineConfig: InlineConfig): Promise<PreviewServer>;
|
|
@@ -2031,7 +2029,7 @@ export declare interface UserConfig {
|
|
|
2031
2029
|
/**
|
|
2032
2030
|
* Array of vite plugins to use.
|
|
2033
2031
|
*/
|
|
2034
|
-
plugins?:
|
|
2032
|
+
plugins?: PluginOption[];
|
|
2035
2033
|
/**
|
|
2036
2034
|
* Configure resolver
|
|
2037
2035
|
*/
|
|
@@ -2119,7 +2117,7 @@ export declare interface UserConfig {
|
|
|
2119
2117
|
/**
|
|
2120
2118
|
* Vite plugins that apply to worker bundle
|
|
2121
2119
|
*/
|
|
2122
|
-
plugins?:
|
|
2120
|
+
plugins?: PluginOption[];
|
|
2123
2121
|
/**
|
|
2124
2122
|
* Rollup options to build worker bundle
|
|
2125
2123
|
*/
|
package/dist/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Evan You",
|
|
6
6
|
"description": "Native-ESM powered web dev build tool",
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
"@ampproject/remapping": "^2.1.2",
|
|
56
56
|
"@babel/parser": "^7.17.9",
|
|
57
57
|
"@babel/types": "^7.17.0",
|
|
58
|
-
"@jridgewell/trace-mapping": "^0.3.
|
|
58
|
+
"@jridgewell/trace-mapping": "^0.3.9",
|
|
59
59
|
"@rollup/plugin-alias": "^3.1.9",
|
|
60
|
-
"@rollup/plugin-commonjs": "^21.0
|
|
61
|
-
"@rollup/plugin-dynamic-import-vars": "^1.4.
|
|
60
|
+
"@rollup/plugin-commonjs": "^21.1.0",
|
|
61
|
+
"@rollup/plugin-dynamic-import-vars": "^1.4.3",
|
|
62
62
|
"@rollup/plugin-json": "^4.1.0",
|
|
63
|
-
"@rollup/plugin-node-resolve": "13.1
|
|
64
|
-
"@rollup/plugin-typescript": "^8.3.
|
|
65
|
-
"@rollup/pluginutils": "^4.2.
|
|
63
|
+
"@rollup/plugin-node-resolve": "13.2.1",
|
|
64
|
+
"@rollup/plugin-typescript": "^8.3.2",
|
|
65
|
+
"@rollup/pluginutils": "^4.2.1",
|
|
66
66
|
"@types/convert-source-map": "^1.5.2",
|
|
67
67
|
"@types/cross-spawn": "^6.0.2",
|
|
68
68
|
"@types/debug": "^4.1.7",
|
|
@@ -71,12 +71,12 @@
|
|
|
71
71
|
"@types/less": "^3.0.3",
|
|
72
72
|
"@types/micromatch": "^4.0.2",
|
|
73
73
|
"@types/mime": "^2.0.3",
|
|
74
|
-
"@types/node": "^
|
|
74
|
+
"@types/node": "^17.0.25",
|
|
75
75
|
"@types/resolve": "^1.20.1",
|
|
76
76
|
"@types/sass": "~1.43.1",
|
|
77
77
|
"@types/stylus": "^0.48.37",
|
|
78
78
|
"@types/ws": "^8.5.3",
|
|
79
|
-
"@vue/compiler-dom": "^3.2.
|
|
79
|
+
"@vue/compiler-dom": "^3.2.33",
|
|
80
80
|
"acorn": "^8.7.0",
|
|
81
81
|
"cac": "6.7.9",
|
|
82
82
|
"chokidar": "^3.5.3",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"postcss-load-config": "^3.1.4",
|
|
108
108
|
"postcss-modules": "^4.3.1",
|
|
109
109
|
"resolve.exports": "^1.1.0",
|
|
110
|
-
"rollup-plugin-license": "^2.
|
|
110
|
+
"rollup-plugin-license": "^2.7.0",
|
|
111
111
|
"sirv": "^2.0.2",
|
|
112
112
|
"source-map-js": "^1.0.2",
|
|
113
113
|
"source-map-support": "^0.5.21",
|