vite 2.6.13 → 2.6.14

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.

@@ -20257,7 +20257,7 @@ async function compileCSS(id, code, config, urlReplacer, atImportResolvers, serv
20257
20257
  replacer: urlReplacer
20258
20258
  }));
20259
20259
  if (isModule) {
20260
- postcssPlugins.unshift((await Promise.resolve().then(function () { return require('./dep-1a7759b6.js'); }).then(function (n) { return n.index; })).default({
20260
+ postcssPlugins.unshift((await Promise.resolve().then(function () { return require('./dep-c98c5b6d.js'); }).then(function (n) { return n.index; })).default({
20261
20261
  ...modulesOptions,
20262
20262
  getJSON(cssFileName, _modules, outputFileName) {
20263
20263
  modules = _modules;
@@ -21222,7 +21222,7 @@ const assetAttrsConfig = {
21222
21222
  const isAsyncScriptMap = new WeakMap();
21223
21223
  async function traverseHtml(html, filePath, visitor) {
21224
21224
  // lazy load compiler
21225
- const { parse, transform } = await Promise.resolve().then(function () { return require('./dep-93e144c8.js'); }).then(function (n) { return n.compilerDom_cjs; });
21225
+ const { parse, transform } = await Promise.resolve().then(function () { return require('./dep-66b16601.js'); }).then(function (n) { return n.compilerDom_cjs; });
21226
21226
  // @vue/compiler-core doesn't like lowercase doctypes
21227
21227
  html = html.replace(/<!doctype\s/i, '<!DOCTYPE ');
21228
21228
  try {
@@ -49038,7 +49038,7 @@ function readFileIfExists(value) {
49038
49038
  * https://github.com/webpack/webpack-dev-server/blob/master/LICENSE
49039
49039
  */
49040
49040
  async function createCertificate() {
49041
- const { generate } = await Promise.resolve().then(function () { return require('./dep-724b1c48.js'); }).then(function (n) { return n.index; });
49041
+ const { generate } = await Promise.resolve().then(function () { return require('./dep-7113cb3d.js'); }).then(function (n) { return n.index; });
49042
49042
  const pems = generate(null, {
49043
49043
  algorithm: 'sha256',
49044
49044
  days: 30,
@@ -56273,6 +56273,10 @@ const isDebug$3 = !!process.env.DEBUG;
56273
56273
  const debug$4 = createDebugger('vite:sourcemap', {
56274
56274
  onlyWhenFocused: true
56275
56275
  });
56276
+ // Virtual modules should be prefixed with a null byte to avoid a
56277
+ // false positive "missing source" warning. We also check for certain
56278
+ // prefixes used for special handling in esbuildDepPlugin.
56279
+ const virtualSourceRE = /^(\0|dep:|browser-external:)/;
56276
56280
  async function injectSourcesContent(map, file, logger) {
56277
56281
  let sourceRoot;
56278
56282
  try {
@@ -56282,7 +56286,7 @@ async function injectSourcesContent(map, file, logger) {
56282
56286
  catch { }
56283
56287
  const missingSources = [];
56284
56288
  map.sourcesContent = await Promise.all(map.sources.map((sourcePath) => {
56285
- if (sourcePath) {
56289
+ if (sourcePath && !virtualSourceRE.test(sourcePath)) {
56286
56290
  sourcePath = decodeURI(sourcePath);
56287
56291
  if (sourceRoot) {
56288
56292
  sourcePath = path__default.resolve(sourceRoot, sourcePath);
@@ -57287,7 +57291,6 @@ async function handleHMRUpdate(file, server) {
57287
57291
  const filteredModules = await plugin.handleHotUpdate(hmrContext);
57288
57292
  if (filteredModules) {
57289
57293
  hmrContext.modules = filteredModules;
57290
- break;
57291
57294
  }
57292
57295
  }
57293
57296
  }
@@ -92086,4 +92089,4 @@ exports.send = send$1;
92086
92089
  exports.sortUserPlugins = sortUserPlugins;
92087
92090
  exports.source = source;
92088
92091
  exports.transformWithEsbuild = transformWithEsbuild;
92089
- //# sourceMappingURL=dep-85dbaaa7.js.map
92092
+ //# sourceMappingURL=dep-e0fe87f8.js.map