vite 2.7.12 → 2.8.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.
- package/CHANGELOG.md +2738 -0
- package/LICENSE.md +16 -778
- package/bin/vite.js +3 -1
- package/client.d.ts +4 -0
- package/dist/node/chunks/{dep-2d8e2cb1.js → dep-0ebab0df.js} +1 -2
- package/dist/node/chunks/{dep-ac1b4bf9.js → dep-2056ae8a.js} +20 -4
- package/dist/node/chunks/{dep-d7204208.js → dep-6f0b746c.js} +1 -2
- package/dist/node/chunks/{dep-73d734ac.js → dep-84e12b4e.js} +470 -4367
- package/dist/node/chunks/{dep-374a3cfd.js → dep-885d4c21.js} +12139 -21842
- package/dist/node/chunks/{dep-0351185a.js → dep-a5ab6d86.js} +49117 -52190
- package/dist/node/cli.js +13 -13
- package/dist/node/index.d.ts +46 -8
- package/dist/node/index.js +2 -3
- package/package.json +14 -12
- package/types/importMeta.d.ts +17 -2
- package/dist/node/build.d.ts +0 -200
- package/dist/node/chunks/dep-0351185a.js.map +0 -1
- package/dist/node/chunks/dep-2d8e2cb1.js.map +0 -1
- package/dist/node/chunks/dep-374a3cfd.js.map +0 -1
- package/dist/node/chunks/dep-73d734ac.js.map +0 -1
- package/dist/node/chunks/dep-ac1b4bf9.js.map +0 -1
- package/dist/node/chunks/dep-d7204208.js.map +0 -1
- package/dist/node/cli.d.ts +0 -1
- package/dist/node/cli.js.map +0 -1
- package/dist/node/config.d.ts +0 -202
- package/dist/node/constants.d.ts +0 -33
- package/dist/node/http.d.ts +0 -84
- package/dist/node/importGlob.d.ts +0 -9
- package/dist/node/index.js.map +0 -1
- package/dist/node/logger.d.ts +0 -35
- package/dist/node/optimizer/esbuildDepPlugin.d.ts +0 -4
- package/dist/node/optimizer/index.d.ts +0 -66
- package/dist/node/optimizer/registerMissing.d.ts +0 -2
- package/dist/node/optimizer/scan.d.ts +0 -9
- package/dist/node/packages.d.ts +0 -25
- package/dist/node/plugin.d.ts +0 -115
- package/dist/node/plugins/asset.d.ts +0 -40
- package/dist/node/plugins/assetImportMetaUrl.d.ts +0 -13
- package/dist/node/plugins/clientInjections.d.ts +0 -7
- package/dist/node/plugins/css.d.ts +0 -70
- package/dist/node/plugins/dataUri.d.ts +0 -5
- package/dist/node/plugins/define.d.ts +0 -3
- package/dist/node/plugins/esbuild.d.ts +0 -15
- package/dist/node/plugins/html.d.ts +0 -102
- package/dist/node/plugins/importAnalysis.d.ts +0 -46
- package/dist/node/plugins/importAnalysisBuild.d.ts +0 -15
- package/dist/node/plugins/index.d.ts +0 -3
- package/dist/node/plugins/json.d.ts +0 -22
- package/dist/node/plugins/loadFallback.d.ts +0 -5
- package/dist/node/plugins/manifest.d.ts +0 -14
- package/dist/node/plugins/modulePreloadPolyfill.d.ts +0 -4
- package/dist/node/plugins/preAlias.d.ts +0 -5
- package/dist/node/plugins/reporter.d.ts +0 -3
- package/dist/node/plugins/resolve.d.ts +0 -38
- package/dist/node/plugins/ssrRequireHook.d.ts +0 -12
- package/dist/node/plugins/terser.d.ts +0 -3
- package/dist/node/plugins/wasm.d.ts +0 -3
- package/dist/node/plugins/worker.d.ts +0 -3
- package/dist/node/preview.d.ts +0 -31
- package/dist/node/server/hmr.d.ts +0 -37
- package/dist/node/server/index.d.ts +0 -222
- package/dist/node/server/middlewares/base.d.ts +0 -3
- package/dist/node/server/middlewares/error.d.ts +0 -8
- package/dist/node/server/middlewares/indexHtml.d.ts +0 -4
- package/dist/node/server/middlewares/proxy.d.ts +0 -20
- package/dist/node/server/middlewares/spaFallback.d.ts +0 -2
- package/dist/node/server/middlewares/static.d.ts +0 -6
- package/dist/node/server/middlewares/time.d.ts +0 -2
- package/dist/node/server/middlewares/transform.d.ts +0 -3
- package/dist/node/server/moduleGraph.d.ts +0 -53
- package/dist/node/server/openBrowser.d.ts +0 -15
- package/dist/node/server/pluginContainer.d.ts +0 -37
- package/dist/node/server/searchRoot.d.ts +0 -8
- package/dist/node/server/send.d.ts +0 -4
- package/dist/node/server/sourcemap.d.ts +0 -8
- package/dist/node/server/transformRequest.d.ts +0 -14
- package/dist/node/server/ws.d.ts +0 -14
- package/dist/node/ssr/ssrExternal.d.ts +0 -7
- package/dist/node/ssr/ssrManifestPlugin.d.ts +0 -3
- package/dist/node/ssr/ssrModuleLoader.d.ts +0 -7
- package/dist/node/ssr/ssrStacktrace.d.ts +0 -3
- package/dist/node/ssr/ssrTransform.d.ts +0 -8
- package/dist/node/utils.d.ts +0 -114
package/bin/vite.js
CHANGED
|
@@ -28,7 +28,9 @@ if (debugIndex > 0) {
|
|
|
28
28
|
.map((v) => `vite:${v}`)
|
|
29
29
|
.join(',')
|
|
30
30
|
}
|
|
31
|
-
process.env.DEBUG =
|
|
31
|
+
process.env.DEBUG = `${
|
|
32
|
+
process.env.DEBUG ? process.env.DEBUG + ',' : ''
|
|
33
|
+
}${value}`
|
|
32
34
|
|
|
33
35
|
if (filterIndex > 0) {
|
|
34
36
|
const filter = process.argv[filterIndex + 1]
|
package/client.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var path$3 = require('path');
|
|
4
4
|
var resolve$2 = require('resolve');
|
|
5
5
|
var fs$1 = require('fs');
|
|
6
|
-
var index$1 = require('./dep-
|
|
6
|
+
var index$1 = require('./dep-2056ae8a.js');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
|
|
9
9
|
|
|
@@ -743,4 +743,3 @@ var index = /*#__PURE__*/_mergeNamespaces({
|
|
|
743
743
|
}, [postcssImport]);
|
|
744
744
|
|
|
745
745
|
exports.index = index;
|
|
746
|
-
//# sourceMappingURL=dep-2d8e2cb1.js.map
|
|
@@ -52,6 +52,7 @@ var parse$1 = function(input) {
|
|
|
52
52
|
after = token;
|
|
53
53
|
} else if (prev && prev.type === "div") {
|
|
54
54
|
prev.after = token;
|
|
55
|
+
prev.sourceEndIndex += token.length;
|
|
55
56
|
} else if (
|
|
56
57
|
code === comma ||
|
|
57
58
|
code === colon ||
|
|
@@ -65,6 +66,7 @@ var parse$1 = function(input) {
|
|
|
65
66
|
tokens.push({
|
|
66
67
|
type: "space",
|
|
67
68
|
sourceIndex: pos,
|
|
69
|
+
sourceEndIndex: next,
|
|
68
70
|
value: token
|
|
69
71
|
});
|
|
70
72
|
}
|
|
@@ -96,22 +98,25 @@ var parse$1 = function(input) {
|
|
|
96
98
|
}
|
|
97
99
|
} while (escape);
|
|
98
100
|
token.value = value.slice(pos + 1, next);
|
|
99
|
-
|
|
101
|
+
token.sourceEndIndex = token.unclosed ? next : next + 1;
|
|
100
102
|
tokens.push(token);
|
|
101
103
|
pos = next + 1;
|
|
102
104
|
code = value.charCodeAt(pos);
|
|
103
105
|
|
|
104
106
|
// Comments
|
|
105
107
|
} else if (code === slash && value.charCodeAt(pos + 1) === star) {
|
|
108
|
+
next = value.indexOf("*/", pos);
|
|
109
|
+
|
|
106
110
|
token = {
|
|
107
111
|
type: "comment",
|
|
108
|
-
sourceIndex: pos
|
|
112
|
+
sourceIndex: pos,
|
|
113
|
+
sourceEndIndex: next + 2
|
|
109
114
|
};
|
|
110
115
|
|
|
111
|
-
next = value.indexOf("*/", pos);
|
|
112
116
|
if (next === -1) {
|
|
113
117
|
token.unclosed = true;
|
|
114
118
|
next = value.length;
|
|
119
|
+
token.sourceEndIndex = next;
|
|
115
120
|
}
|
|
116
121
|
|
|
117
122
|
token.value = value.slice(pos + 2, next);
|
|
@@ -131,6 +136,7 @@ var parse$1 = function(input) {
|
|
|
131
136
|
tokens.push({
|
|
132
137
|
type: "word",
|
|
133
138
|
sourceIndex: pos - before.length,
|
|
139
|
+
sourceEndIndex: pos + token.length,
|
|
134
140
|
value: token
|
|
135
141
|
});
|
|
136
142
|
pos += 1;
|
|
@@ -143,6 +149,7 @@ var parse$1 = function(input) {
|
|
|
143
149
|
tokens.push({
|
|
144
150
|
type: "div",
|
|
145
151
|
sourceIndex: pos - before.length,
|
|
152
|
+
sourceEndIndex: pos + token.length,
|
|
146
153
|
value: token,
|
|
147
154
|
before: before,
|
|
148
155
|
after: ""
|
|
@@ -198,6 +205,7 @@ var parse$1 = function(input) {
|
|
|
198
205
|
{
|
|
199
206
|
type: "word",
|
|
200
207
|
sourceIndex: pos,
|
|
208
|
+
sourceEndIndex: whitespacePos + 1,
|
|
201
209
|
value: value.slice(pos, whitespacePos + 1)
|
|
202
210
|
}
|
|
203
211
|
];
|
|
@@ -209,21 +217,25 @@ var parse$1 = function(input) {
|
|
|
209
217
|
token.nodes.push({
|
|
210
218
|
type: "space",
|
|
211
219
|
sourceIndex: whitespacePos + 1,
|
|
220
|
+
sourceEndIndex: next,
|
|
212
221
|
value: value.slice(whitespacePos + 1, next)
|
|
213
222
|
});
|
|
214
223
|
} else {
|
|
215
224
|
token.after = value.slice(whitespacePos + 1, next);
|
|
225
|
+
token.sourceEndIndex = next;
|
|
216
226
|
}
|
|
217
227
|
} else {
|
|
218
228
|
token.after = "";
|
|
219
229
|
token.nodes = [];
|
|
220
230
|
}
|
|
221
231
|
pos = next + 1;
|
|
232
|
+
token.sourceEndIndex = token.unclosed ? next : pos;
|
|
222
233
|
code = value.charCodeAt(pos);
|
|
223
234
|
tokens.push(token);
|
|
224
235
|
} else {
|
|
225
236
|
balanced += 1;
|
|
226
237
|
token.after = "";
|
|
238
|
+
token.sourceEndIndex = pos + 1;
|
|
227
239
|
tokens.push(token);
|
|
228
240
|
stack.push(token);
|
|
229
241
|
tokens = token.nodes = [];
|
|
@@ -237,8 +249,10 @@ var parse$1 = function(input) {
|
|
|
237
249
|
code = value.charCodeAt(pos);
|
|
238
250
|
|
|
239
251
|
parent.after = after;
|
|
252
|
+
parent.sourceEndIndex += after.length;
|
|
240
253
|
after = "";
|
|
241
254
|
balanced -= 1;
|
|
255
|
+
stack[stack.length - 1].sourceEndIndex = pos;
|
|
242
256
|
stack.pop();
|
|
243
257
|
parent = stack[balanced];
|
|
244
258
|
tokens = parent.nodes;
|
|
@@ -284,12 +298,14 @@ var parse$1 = function(input) {
|
|
|
284
298
|
tokens.push({
|
|
285
299
|
type: "unicode-range",
|
|
286
300
|
sourceIndex: pos,
|
|
301
|
+
sourceEndIndex: next,
|
|
287
302
|
value: token
|
|
288
303
|
});
|
|
289
304
|
} else {
|
|
290
305
|
tokens.push({
|
|
291
306
|
type: "word",
|
|
292
307
|
sourceIndex: pos,
|
|
308
|
+
sourceEndIndex: next,
|
|
293
309
|
value: token
|
|
294
310
|
});
|
|
295
311
|
}
|
|
@@ -300,6 +316,7 @@ var parse$1 = function(input) {
|
|
|
300
316
|
|
|
301
317
|
for (pos = stack.length - 1; pos; pos -= 1) {
|
|
302
318
|
stack[pos].unclosed = true;
|
|
319
|
+
stack[pos].sourceEndIndex = value.length;
|
|
303
320
|
}
|
|
304
321
|
|
|
305
322
|
return stack[0].nodes;
|
|
@@ -528,4 +545,3 @@ ValueParser.stringify = stringify;
|
|
|
528
545
|
var lib = ValueParser;
|
|
529
546
|
|
|
530
547
|
exports.lib = lib;
|
|
531
|
-
//# sourceMappingURL=dep-ac1b4bf9.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var build = require('./dep-
|
|
3
|
+
var build = require('./dep-a5ab6d86.js');
|
|
4
4
|
|
|
5
5
|
function _mergeNamespaces(n, m) {
|
|
6
6
|
for (var i = 0; i < m.length; i++) {
|
|
@@ -8738,4 +8738,3 @@ var compilerDom_cjs$1 = /*#__PURE__*/_mergeNamespaces({
|
|
|
8738
8738
|
}, [compilerDom_cjs$2]);
|
|
8739
8739
|
|
|
8740
8740
|
exports.compilerDom_cjs = compilerDom_cjs$1;
|
|
8741
|
-
//# sourceMappingURL=dep-d7204208.js.map
|