vite 3.1.0 → 3.1.2

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.
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-665b0112.js';
3
+ import { y as picocolors, u as createLogger, e as resolveConfig } from './chunks/dep-cff57044.js';
4
4
  import { VERSION } from './constants.js';
5
5
  import 'node:fs';
6
6
  import 'node:path';
@@ -695,7 +695,7 @@ cli
695
695
  .action(async (root, options) => {
696
696
  // output structure is preserved even after bundling so require()
697
697
  // is ok here
698
- const { createServer } = await import('./chunks/dep-665b0112.js').then(function (n) { return n.C; });
698
+ const { createServer } = await import('./chunks/dep-cff57044.js').then(function (n) { return n.C; });
699
699
  try {
700
700
  const server = await createServer({
701
701
  root,
@@ -715,7 +715,7 @@ cli
715
715
  // @ts-ignore
716
716
  const viteStartTime = global.__vite_start_time ?? false;
717
717
  const startupDurationString = viteStartTime
718
- ? picocolors.exports.dim(`ready in ${picocolors.exports.white(picocolors.exports.bold(Math.ceil(performance.now() - viteStartTime)))} ms`)
718
+ ? picocolors.exports.dim(`ready in ${picocolors.exports.reset(picocolors.exports.bold(Math.ceil(performance.now() - viteStartTime)))} ms`)
719
719
  : '';
720
720
  info(`\n ${picocolors.exports.green(`${picocolors.exports.bold('VITE')} v${VERSION}`)} ${startupDurationString}\n`, { clear: !server.config.logger.hasWarned });
721
721
  server.printUrls();
@@ -742,7 +742,7 @@ cli
742
742
  .option('--emptyOutDir', `[boolean] force empty outDir when it's outside of root`)
743
743
  .option('-w, --watch', `[boolean] rebuilds when modules have changed on disk`)
744
744
  .action(async (root, options) => {
745
- const { build } = await import('./chunks/dep-665b0112.js').then(function (n) { return n.B; });
745
+ const { build } = await import('./chunks/dep-cff57044.js').then(function (n) { return n.B; });
746
746
  const buildOptions = cleanOptions(options);
747
747
  try {
748
748
  await build({
@@ -766,7 +766,7 @@ cli
766
766
  .command('optimize [root]', 'pre-bundle dependencies')
767
767
  .option('--force', `[boolean] force the optimizer to ignore the cache and re-bundle`)
768
768
  .action(async (root, options) => {
769
- const { optimizeDeps } = await import('./chunks/dep-665b0112.js').then(function (n) { return n.A; });
769
+ const { optimizeDeps } = await import('./chunks/dep-cff57044.js').then(function (n) { return n.A; });
770
770
  try {
771
771
  const config = await resolveConfig({
772
772
  root,
@@ -789,7 +789,7 @@ cli
789
789
  .option('--https', `[boolean] use TLS + HTTP/2`)
790
790
  .option('--open [path]', `[boolean | string] open browser on startup`)
791
791
  .action(async (root, options) => {
792
- const { preview } = await import('./chunks/dep-665b0112.js').then(function (n) { return n.D; });
792
+ const { preview } = await import('./chunks/dep-cff57044.js').then(function (n) { return n.D; });
793
793
  try {
794
794
  const server = await preview({
795
795
  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.1.0";
4
+ var version = "3.1.2";
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-665b0112.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-cff57044.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.1.0";
34
+ var version = "3.1.2";
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.1.0",
3
+ "version": "3.1.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -68,15 +68,15 @@
68
68
  },
69
69
  "devDependencies": {
70
70
  "@ampproject/remapping": "^2.2.0",
71
- "@babel/parser": "^7.18.13",
72
- "@babel/types": "^7.18.13",
71
+ "@babel/parser": "^7.19.0",
72
+ "@babel/types": "^7.19.0",
73
73
  "@jridgewell/trace-mapping": "^0.3.15",
74
74
  "@rollup/plugin-alias": "^3.1.9",
75
75
  "@rollup/plugin-commonjs": "^22.0.2",
76
76
  "@rollup/plugin-dynamic-import-vars": "^1.4.4",
77
77
  "@rollup/plugin-json": "^4.1.0",
78
- "@rollup/plugin-node-resolve": "13.3.0",
79
- "@rollup/plugin-typescript": "^8.4.0",
78
+ "@rollup/plugin-node-resolve": "14.0.1",
79
+ "@rollup/plugin-typescript": "^8.5.0",
80
80
  "@rollup/pluginutils": "^4.2.1",
81
81
  "acorn": "^8.8.0",
82
82
  "cac": "^6.7.14",
@@ -92,17 +92,17 @@
92
92
  "es-module-lexer": "^1.0.3",
93
93
  "estree-walker": "^3.0.1",
94
94
  "etag": "^1.8.1",
95
- "fast-glob": "^3.2.11",
95
+ "fast-glob": "^3.2.12",
96
96
  "http-proxy": "^1.18.1",
97
97
  "json5": "^2.2.1",
98
98
  "launch-editor-middleware": "^2.6.0",
99
- "magic-string": "^0.26.2",
99
+ "magic-string": "^0.26.3",
100
100
  "micromatch": "^4.0.5",
101
101
  "mlly": "^0.5.14",
102
102
  "mrmime": "^1.0.1",
103
103
  "okie": "^1.0.1",
104
104
  "open": "^8.4.0",
105
- "parse5": "^7.0.0",
105
+ "parse5": "^7.1.1",
106
106
  "periscopic": "^3.0.4",
107
107
  "picocolors": "^1.0.0",
108
108
  "postcss-import": "^15.0.0",
@@ -1,8 +1,17 @@
1
1
  import type { ErrorPayload } from 'types/hmrPayload'
2
2
 
3
+ // set :host styles to make playwright detect the element as visible
3
4
  const template = /*html*/ `
4
5
  <style>
5
6
  :host {
7
+ position: fixed;
8
+ top: 0;
9
+ left: 0;
10
+ width: 100%;
11
+ height: 100%;
12
+ }
13
+
14
+ .backdrop {
6
15
  position: fixed;
7
16
  z-index: 99999;
8
17
  top: 0;
@@ -99,15 +108,17 @@ code {
99
108
  cursor: pointer;
100
109
  }
101
110
  </style>
102
- <div class="window">
103
- <pre class="message"><span class="plugin"></span><span class="message-body"></span></pre>
104
- <pre class="file"></pre>
105
- <pre class="frame"></pre>
106
- <pre class="stack"></pre>
107
- <div class="tip">
108
- Click outside or fix the code to dismiss.<br>
109
- You can also disable this overlay by setting
110
- <code>server.hmr.overlay</code> to <code>false</code> in <code>vite.config.js.</code>
111
+ <div class="backdrop">
112
+ <div class="window">
113
+ <pre class="message"><span class="plugin"></span><span class="message-body"></span></pre>
114
+ <pre class="file"></pre>
115
+ <pre class="frame"></pre>
116
+ <pre class="stack"></pre>
117
+ <div class="tip">
118
+ Click outside or fix the code to dismiss.<br>
119
+ You can also disable this overlay by setting
120
+ <code>server.hmr.overlay</code> to <code>false</code> in <code>vite.config.js.</code>
121
+ </div>
111
122
  </div>
112
123
  </div>
113
124
  `