vite 2.7.12 → 2.7.13
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 +2687 -0
- package/dist/node/chunks/{dep-d7204208.js → dep-4e5ae969.js} +2 -2
- package/dist/node/chunks/{dep-d7204208.js.map → dep-4e5ae969.js.map} +1 -1
- package/dist/node/chunks/{dep-73d734ac.js → dep-61b103b4.js} +2 -2
- package/dist/node/chunks/{dep-73d734ac.js.map → dep-61b103b4.js.map} +1 -1
- package/dist/node/chunks/{dep-374a3cfd.js → dep-9fc73d70.js} +2 -2
- package/dist/node/chunks/{dep-374a3cfd.js.map → dep-9fc73d70.js.map} +1 -1
- package/dist/node/chunks/{dep-0351185a.js → dep-f5552faa.js} +18 -9
- package/dist/node/chunks/{dep-0351185a.js.map → dep-f5552faa.js.map} +1 -1
- package/dist/node/cli.js +4 -4
- package/dist/node/index.js +1 -1
- package/package.json +1 -1
|
@@ -20397,7 +20397,7 @@ async function compileCSS(id, code, config, urlReplacer, atImportResolvers, serv
|
|
|
20397
20397
|
replacer: urlReplacer
|
|
20398
20398
|
}));
|
|
20399
20399
|
if (isModule) {
|
|
20400
|
-
postcssPlugins.unshift((await Promise.resolve().then(function () { return require('./dep-
|
|
20400
|
+
postcssPlugins.unshift((await Promise.resolve().then(function () { return require('./dep-61b103b4.js'); }).then(function (n) { return n.index; })).default({
|
|
20401
20401
|
...modulesOptions,
|
|
20402
20402
|
getJSON(cssFileName, _modules, outputFileName) {
|
|
20403
20403
|
modules = _modules;
|
|
@@ -21402,7 +21402,7 @@ const assetAttrsConfig = {
|
|
|
21402
21402
|
const isAsyncScriptMap = new WeakMap();
|
|
21403
21403
|
async function traverseHtml(html, filePath, visitor) {
|
|
21404
21404
|
// lazy load compiler
|
|
21405
|
-
const { parse, transform } = await Promise.resolve().then(function () { return require('./dep-
|
|
21405
|
+
const { parse, transform } = await Promise.resolve().then(function () { return require('./dep-4e5ae969.js'); }).then(function (n) { return n.compilerDom_cjs; });
|
|
21406
21406
|
// @vue/compiler-core doesn't like lowercase doctypes
|
|
21407
21407
|
html = html.replace(/<!doctype\s/i, '<!DOCTYPE ');
|
|
21408
21408
|
try {
|
|
@@ -43719,7 +43719,7 @@ function readFileIfExists(value) {
|
|
|
43719
43719
|
* https://github.com/webpack/webpack-dev-server/blob/master/LICENSE
|
|
43720
43720
|
*/
|
|
43721
43721
|
async function createCertificate() {
|
|
43722
|
-
const { generate } = await Promise.resolve().then(function () { return require('./dep-
|
|
43722
|
+
const { generate } = await Promise.resolve().then(function () { return require('./dep-9fc73d70.js'); }).then(function (n) { return n.index; });
|
|
43723
43723
|
const pems = generate(null, {
|
|
43724
43724
|
algorithm: 'sha256',
|
|
43725
43725
|
days: 30,
|
|
@@ -51011,6 +51011,11 @@ function walk(root, { onIdentifier, onImportMeta, onDynamicImport }) {
|
|
|
51011
51011
|
}
|
|
51012
51012
|
walk$1(p.type === 'AssignmentPattern' ? p.left : p, {
|
|
51013
51013
|
enter(child, parent) {
|
|
51014
|
+
// skip params default value of destructure
|
|
51015
|
+
if ((parent === null || parent === void 0 ? void 0 : parent.type) === 'AssignmentPattern' &&
|
|
51016
|
+
(parent === null || parent === void 0 ? void 0 : parent.right) === child) {
|
|
51017
|
+
return this.skip();
|
|
51018
|
+
}
|
|
51014
51019
|
if (child.type !== 'Identifier')
|
|
51015
51020
|
return;
|
|
51016
51021
|
// do not record as scope variable if is a destructuring keyword
|
|
@@ -51018,10 +51023,8 @@ function walk(root, { onIdentifier, onImportMeta, onDynamicImport }) {
|
|
|
51018
51023
|
return;
|
|
51019
51024
|
// do not record if this is a default value
|
|
51020
51025
|
// assignment of a destructuring variable
|
|
51021
|
-
if (((parent === null || parent === void 0 ? void 0 : parent.type) === '
|
|
51022
|
-
(parent === null || parent === void 0 ? void 0 : parent.
|
|
51023
|
-
((parent === null || parent === void 0 ? void 0 : parent.type) === 'TemplateLiteral' &&
|
|
51024
|
-
(parent === null || parent === void 0 ? void 0 : parent.expressions.includes(child))) ||
|
|
51026
|
+
if (((parent === null || parent === void 0 ? void 0 : parent.type) === 'TemplateLiteral' &&
|
|
51027
|
+
(parent === null || parent === void 0 ? void 0 : parent.expressions.includes(child))) ||
|
|
51025
51028
|
((parent === null || parent === void 0 ? void 0 : parent.type) === 'CallExpression' && (parent === null || parent === void 0 ? void 0 : parent.callee) === child)) {
|
|
51026
51029
|
return;
|
|
51027
51030
|
}
|
|
@@ -60134,7 +60137,13 @@ async function nodeImport(id, importer, resolveOptions) {
|
|
|
60134
60137
|
return nodeResolve(id, parent, isMain, options);
|
|
60135
60138
|
}
|
|
60136
60139
|
if (parent) {
|
|
60137
|
-
|
|
60140
|
+
let resolved = viteResolve(id, parent.id);
|
|
60141
|
+
if (resolved) {
|
|
60142
|
+
// hookNodeResolve must use platform-specific path.normalize
|
|
60143
|
+
// to be compatible with dynamicImport (#6080)
|
|
60144
|
+
resolved = path__default.normalize(resolved);
|
|
60145
|
+
}
|
|
60146
|
+
return resolved;
|
|
60138
60147
|
}
|
|
60139
60148
|
// Importing a CJS module from an ESM module. In this case, the import
|
|
60140
60149
|
// specifier is already an absolute path, so this is a no-op.
|
|
@@ -75253,4 +75262,4 @@ exports.send = send$1;
|
|
|
75253
75262
|
exports.sortUserPlugins = sortUserPlugins;
|
|
75254
75263
|
exports.source = source;
|
|
75255
75264
|
exports.transformWithEsbuild = transformWithEsbuild;
|
|
75256
|
-
//# sourceMappingURL=dep-
|
|
75265
|
+
//# sourceMappingURL=dep-f5552faa.js.map
|