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.

@@ -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-73d734ac.js'); }).then(function (n) { return n.index; })).default({
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-d7204208.js'); }).then(function (n) { return n.compilerDom_cjs; });
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-374a3cfd.js'); }).then(function (n) { return n.index; });
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) === 'AssignmentPattern' &&
51022
- (parent === null || parent === void 0 ? void 0 : parent.right) === child) ||
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
- return viteResolve(id, parent.id);
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-0351185a.js.map
75265
+ //# sourceMappingURL=dep-f5552faa.js.map