vite 2.7.4 → 2.7.5

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-fd7e14cf.js'); }).then(function (n) { return n.index; })).default({
20400
+ postcssPlugins.unshift((await Promise.resolve().then(function () { return require('./dep-05f535a1.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-ef3cdce0.js'); }).then(function (n) { return n.compilerDom_cjs; });
21405
+ const { parse, transform } = await Promise.resolve().then(function () { return require('./dep-4b67bc15.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 {
@@ -21537,7 +21537,8 @@ function buildHtmlPlugin(config) {
21537
21537
  if (p.type === 6 /* ATTRIBUTE */ &&
21538
21538
  p.value &&
21539
21539
  assetAttrs.includes(p.name)) {
21540
- const url = p.value.content;
21540
+ // assetsUrl may be encodeURI
21541
+ const url = decodeURI(p.value.content);
21541
21542
  if (!isExcludedUrl(url)) {
21542
21543
  if (node.tag === 'link' && isCSSRequest(url)) {
21543
21544
  // CSS references, convert to import
@@ -21570,7 +21571,8 @@ function buildHtmlPlugin(config) {
21570
21571
  const namedOutput = Object.keys(((_b = (_a = config === null || config === void 0 ? void 0 : config.build) === null || _a === void 0 ? void 0 : _a.rollupOptions) === null || _b === void 0 ? void 0 : _b.input) || {});
21571
21572
  for (const attr of assetUrls) {
21572
21573
  const value = attr.value;
21573
- const content = value.content;
21574
+ // assetsUrl may be encodeURI
21575
+ const content = decodeURI(value.content);
21574
21576
  if (content !== '' && // Empty attribute
21575
21577
  !namedOutput.includes(content) && // Direct reference to named output
21576
21578
  !namedOutput.includes(content.replace(/^\//, '')) // Allow for absolute references as named output can't be an absolute path
@@ -49579,7 +49581,7 @@ function readFileIfExists(value) {
49579
49581
  * https://github.com/webpack/webpack-dev-server/blob/master/LICENSE
49580
49582
  */
49581
49583
  async function createCertificate() {
49582
- const { generate } = await Promise.resolve().then(function () { return require('./dep-a89a79de.js'); }).then(function (n) { return n.index; });
49584
+ const { generate } = await Promise.resolve().then(function () { return require('./dep-bab9c4d6.js'); }).then(function (n) { return n.index; });
49583
49585
  const pems = generate(null, {
49584
49586
  algorithm: 'sha256',
49585
49587
  days: 30,
@@ -56863,6 +56865,9 @@ function walk(root, { onIdentifier, onImportMeta, onDynamicImport }) {
56863
56865
  if (property.type === 'RestElement') {
56864
56866
  setScope(parentFunction, property.argument.name);
56865
56867
  }
56868
+ else if (property.value.type === 'AssignmentPattern') {
56869
+ setScope(parentFunction, property.value.left.name);
56870
+ }
56866
56871
  else {
56867
56872
  setScope(parentFunction, property.value.name);
56868
56873
  }
@@ -82908,4 +82913,4 @@ exports.send = send$1;
82908
82913
  exports.sortUserPlugins = sortUserPlugins;
82909
82914
  exports.source = source;
82910
82915
  exports.transformWithEsbuild = transformWithEsbuild;
82911
- //# sourceMappingURL=dep-cb6d7f22.js.map
82916
+ //# sourceMappingURL=dep-bc5f477e.js.map