vite 3.0.6 → 3.0.7

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.
@@ -35704,7 +35704,7 @@ async function toAbsoluteGlob(glob, root, importer, resolveId) {
35704
35704
  const resolved = normalizePath$3((await resolveId(glob, importer)) || glob);
35705
35705
  if (isAbsolute$2(resolved))
35706
35706
  return pre + resolved;
35707
- throw new Error(`Invalid glob: "${glob}" (resolved: "${resolved}"). It must starts with '/' or './'`);
35707
+ throw new Error(`Invalid glob: "${glob}" (resolved: "${resolved}"). It must start with '/' or './'`);
35708
35708
  }
35709
35709
  function getCommonBase(globsResolved) {
35710
35710
  const bases = globsResolved
@@ -41165,7 +41165,7 @@ const assetAttrsConfig = {
41165
41165
  const isAsyncScriptMap = new WeakMap();
41166
41166
  async function traverseHtml(html, filePath, visitor) {
41167
41167
  // lazy load compiler
41168
- const { parse, transform } = await import('./dep-c7c58113.js').then(function (n) { return n.c; });
41168
+ const { parse, transform } = await import('./dep-af83bc3e.js').then(function (n) { return n.c; });
41169
41169
  // @vue/compiler-core doesn't like lowercase doctypes
41170
41170
  html = html.replace(/<!doctype\s/i, '<!DOCTYPE ');
41171
41171
  try {
@@ -42303,7 +42303,7 @@ async function compileCSS(id, code, config, urlReplacer, atImportResolvers, serv
42303
42303
  logger: config.logger
42304
42304
  }));
42305
42305
  if (isModule) {
42306
- postcssPlugins.unshift((await import('./dep-2274fed5.js').then(function (n) { return n.i; })).default({
42306
+ postcssPlugins.unshift((await import('./dep-efa53ee5.js').then(function (n) { return n.i; })).default({
42307
42307
  ...modulesOptions,
42308
42308
  getJSON(cssFileName, _modules, outputFileName) {
42309
42309
  modules = _modules;
@@ -62988,7 +62988,7 @@ async function bundleConfigFile(fileName, isESM) {
62988
62988
  if (path$n.relative(idPkgDir, fileName).startsWith('..')) {
62989
62989
  return {
62990
62990
  // normalize actual import after bundled as a single vite config
62991
- path: pathToFileURL(idFsPath).href,
62991
+ path: isESM ? pathToFileURL(idFsPath).href : idFsPath,
62992
62992
  external: true
62993
62993
  };
62994
62994
  }
@@ -1,4 +1,4 @@
1
- import { A as getAugmentedNamespace, B as getDefaultExportFromCjs } from './dep-88cc3a4f.js';
1
+ import { A as getAugmentedNamespace, B as getDefaultExportFromCjs } from './dep-0f13c890.js';
2
2
 
3
3
  import { fileURLToPath as __cjs_fileURLToPath } from 'node:url';
4
4
  import { dirname as __cjs_dirname } from 'node:path';
@@ -1,5 +1,5 @@
1
1
  import require$$0$1 from 'postcss';
2
- import { z as commonjsGlobal } from './dep-88cc3a4f.js';
2
+ import { z as commonjsGlobal } from './dep-0f13c890.js';
3
3
  import require$$0 from 'path';
4
4
  import require$$5 from 'crypto';
5
5
  import require$$0__default from 'fs';
package/dist/node/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { performance } from 'node:perf_hooks';
2
2
  import { EventEmitter } from 'events';
3
- import { y as picocolors, u as createLogger, e as resolveConfig } from './chunks/dep-88cc3a4f.js';
3
+ import { y as picocolors, u as createLogger, e as resolveConfig } from './chunks/dep-0f13c890.js';
4
4
  import { VERSION } from './constants.js';
5
5
  import 'node:fs';
6
6
  import 'node:path';
@@ -694,7 +694,7 @@ cli
694
694
  .action(async (root, options) => {
695
695
  // output structure is preserved even after bundling so require()
696
696
  // is ok here
697
- const { createServer } = await import('./chunks/dep-88cc3a4f.js').then(function (n) { return n.E; });
697
+ const { createServer } = await import('./chunks/dep-0f13c890.js').then(function (n) { return n.E; });
698
698
  try {
699
699
  const server = await createServer({
700
700
  root,
@@ -741,7 +741,7 @@ cli
741
741
  .option('--emptyOutDir', `[boolean] force empty outDir when it's outside of root`)
742
742
  .option('-w, --watch', `[boolean] rebuilds when modules have changed on disk`)
743
743
  .action(async (root, options) => {
744
- const { build } = await import('./chunks/dep-88cc3a4f.js').then(function (n) { return n.D; });
744
+ const { build } = await import('./chunks/dep-0f13c890.js').then(function (n) { return n.D; });
745
745
  const buildOptions = cleanOptions(options);
746
746
  try {
747
747
  await build({
@@ -765,7 +765,7 @@ cli
765
765
  .command('optimize [root]', 'pre-bundle dependencies')
766
766
  .option('--force', `[boolean] force the optimizer to ignore the cache and re-bundle`)
767
767
  .action(async (root, options) => {
768
- const { optimizeDeps } = await import('./chunks/dep-88cc3a4f.js').then(function (n) { return n.C; });
768
+ const { optimizeDeps } = await import('./chunks/dep-0f13c890.js').then(function (n) { return n.C; });
769
769
  try {
770
770
  const config = await resolveConfig({
771
771
  root,
@@ -788,7 +788,7 @@ cli
788
788
  .option('--https', `[boolean] use TLS + HTTP/2`)
789
789
  .option('--open [path]', `[boolean | string] open browser on startup`)
790
790
  .action(async (root, options) => {
791
- const { preview } = await import('./chunks/dep-88cc3a4f.js').then(function (n) { return n.F; });
791
+ const { preview } = await import('./chunks/dep-0f13c890.js').then(function (n) { return n.F; });
792
792
  try {
793
793
  const server = await preview({
794
794
  root,
@@ -1,7 +1,7 @@
1
1
  import path, { resolve } from 'node:path';
2
2
  import { fileURLToPath } from 'node:url';
3
3
 
4
- var version = "3.0.6";
4
+ var version = "3.0.7";
5
5
 
6
6
  const VERSION = version;
7
7
  const DEFAULT_MAIN_FIELDS = [
@@ -1,4 +1,4 @@
1
- export { b as build, k as createFilter, u as createLogger, c as createServer, d as defineConfig, f as formatPostcssSourceMap, h as getDepOptimizationConfig, i as isDepsOptimizerEnabled, l as loadConfigFromFile, w as loadEnv, j as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, p as preview, g as resolveBaseUrl, e as resolveConfig, x as resolveEnvPrefix, a as resolvePackageData, r as resolvePackageEntry, v as searchForWorkspaceRoot, q as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-88cc3a4f.js';
1
+ export { b as build, k as createFilter, u as createLogger, c as createServer, d as defineConfig, f as formatPostcssSourceMap, h as getDepOptimizationConfig, i as isDepsOptimizerEnabled, l as loadConfigFromFile, w as loadEnv, j as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, p as preview, g as resolveBaseUrl, e as resolveConfig, x as resolveEnvPrefix, a as resolvePackageData, r as resolvePackageEntry, v as searchForWorkspaceRoot, q as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-0f13c890.js';
2
2
  export { VERSION as version } from './constants.js';
3
3
  export { version as esbuildVersion } from 'esbuild';
4
4
  export { VERSION as rollupVersion } from 'rollup';
@@ -31,7 +31,7 @@ var require$$1__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$1$1);
31
31
  var readline__default = /*#__PURE__*/_interopDefaultLegacy(readline);
32
32
  var require$$2__default = /*#__PURE__*/_interopDefaultLegacy(require$$2);
33
33
 
34
- var version = "3.0.6";
34
+ var version = "3.0.7";
35
35
 
36
36
  const VERSION = version;
37
37
  const VITE_PACKAGE_DIR = path$3.resolve(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",