vite 2.9.0-beta.4 → 2.9.0-beta.6

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.

@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var require$$0 = require('postcss');
4
- var index$1 = require('./dep-5a245411.js');
4
+ var index$1 = require('./dep-7a3b37e3.js');
5
5
  var path$2 = require('path');
6
6
  var require$$1 = require('crypto');
7
7
  var fs = require('fs');
package/dist/node/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var require$$0 = require('events');
4
- var index = require('./chunks/dep-5a245411.js');
4
+ var index = require('./chunks/dep-7a3b37e3.js');
5
5
  var perf_hooks = require('perf_hooks');
6
6
  require('fs');
7
7
  require('path');
@@ -683,7 +683,7 @@ cli
683
683
  .action(async (root, options) => {
684
684
  // output structure is preserved even after bundling so require()
685
685
  // is ok here
686
- const { createServer } = await Promise.resolve().then(function () { return require('./chunks/dep-5a245411.js'); }).then(function (n) { return n.index$1; });
686
+ const { createServer } = await Promise.resolve().then(function () { return require('./chunks/dep-7a3b37e3.js'); }).then(function (n) { return n.index$1; });
687
687
  try {
688
688
  const server = await createServer({
689
689
  root,
@@ -732,7 +732,7 @@ cli
732
732
  .option('--emptyOutDir', `[boolean] force empty outDir when it's outside of root`)
733
733
  .option('-w, --watch', `[boolean] rebuilds when modules have changed on disk`)
734
734
  .action(async (root, options) => {
735
- const { build } = await Promise.resolve().then(function () { return require('./chunks/dep-5a245411.js'); }).then(function (n) { return n.build$1; });
735
+ const { build } = await Promise.resolve().then(function () { return require('./chunks/dep-7a3b37e3.js'); }).then(function (n) { return n.build$1; });
736
736
  const buildOptions = cleanOptions(options);
737
737
  try {
738
738
  await build({
@@ -755,7 +755,7 @@ cli
755
755
  .command('optimize [root]', 'pre-bundle dependencies')
756
756
  .option('--force', `[boolean] force the optimizer to ignore the cache and re-bundle`)
757
757
  .action(async (root, options) => {
758
- const { optimizeDeps } = await Promise.resolve().then(function () { return require('./chunks/dep-5a245411.js'); }).then(function (n) { return n.index; });
758
+ const { optimizeDeps } = await Promise.resolve().then(function () { return require('./chunks/dep-7a3b37e3.js'); }).then(function (n) { return n.index; });
759
759
  try {
760
760
  const config = await index.resolveConfig({
761
761
  root,
@@ -778,7 +778,7 @@ cli
778
778
  .option('--https', `[boolean] use TLS + HTTP/2`)
779
779
  .option('--open [path]', `[boolean | string] open browser on startup`)
780
780
  .action(async (root, options) => {
781
- const { preview } = await Promise.resolve().then(function () { return require('./chunks/dep-5a245411.js'); }).then(function (n) { return n.preview$1; });
781
+ const { preview } = await Promise.resolve().then(function () { return require('./chunks/dep-7a3b37e3.js'); }).then(function (n) { return n.preview$1; });
782
782
  try {
783
783
  const server = await preview({
784
784
  root,
@@ -10,6 +10,7 @@ import type { DuplexOptions } from 'stream';
10
10
  import { TransformOptions as EsbuildTransformOptions } from 'esbuild';
11
11
  import { EventEmitter } from 'events';
12
12
  import * as events from 'events';
13
+ import type { ExistingRawSourceMap } from 'rollup';
13
14
  import type * as fs from 'fs';
14
15
  import type { GetManualChunk } from 'rollup';
15
16
  import * as http from 'http';
@@ -658,6 +659,8 @@ export declare interface FileSystemServeOptions {
658
659
  deny?: string[];
659
660
  }
660
661
 
662
+ export declare function formatPostcssSourceMap(rawMap: ExistingRawSourceMap, file: string): ExistingRawSourceMap;
663
+
661
664
  export declare class FSWatcher extends EventEmitter implements fs.FSWatcher {
662
665
  options: WatchOptions
663
666
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./chunks/dep-5a245411.js');
5
+ var index = require('./chunks/dep-7a3b37e3.js');
6
6
  require('fs');
7
7
  require('path');
8
8
  require('tty');
@@ -137,6 +137,7 @@ exports.build = index.build;
137
137
  exports.createLogger = index.createLogger;
138
138
  exports.createServer = index.createServer;
139
139
  exports.defineConfig = index.defineConfig;
140
+ exports.formatPostcssSourceMap = index.formatPostcssSourceMap;
140
141
  exports.loadConfigFromFile = index.loadConfigFromFile;
141
142
  exports.loadEnv = index.loadEnv;
142
143
  exports.mergeConfig = index.mergeConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "2.9.0-beta.4",
3
+ "version": "2.9.0-beta.6",
4
4
  "license": "MIT",
5
5
  "author": "Evan You",
6
6
  "description": "Native-ESM powered web dev build tool",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@ampproject/remapping": "^2.1.2",
56
- "@babel/parser": "^7.17.7",
56
+ "@babel/parser": "^7.17.8",
57
57
  "@babel/types": "^7.17.0",
58
58
  "@jridgewell/trace-mapping": "^0.3.4",
59
59
  "@rollup/plugin-alias": "^3.1.9",
@@ -85,20 +85,20 @@
85
85
  "convert-source-map": "^1.8.0",
86
86
  "cors": "^2.8.5",
87
87
  "cross-spawn": "^7.0.3",
88
- "debug": "^4.3.3",
88
+ "debug": "^4.3.4",
89
89
  "dotenv": "^14.3.2",
90
90
  "dotenv-expand": "^5.1.0",
91
- "es-module-lexer": "^0.10.1",
91
+ "es-module-lexer": "^0.10.4",
92
92
  "estree-walker": "^2.0.2",
93
93
  "etag": "^1.8.1",
94
94
  "fast-glob": "^3.2.11",
95
95
  "http-proxy": "^1.18.1",
96
- "json5": "^2.2.0",
96
+ "json5": "^2.2.1",
97
97
  "launch-editor-middleware": "^2.3.0",
98
98
  "magic-string": "^0.26.1",
99
99
  "micromatch": "^4.0.4",
100
100
  "mrmime": "^1.0.0",
101
- "node-forge": "^1.2.1",
101
+ "node-forge": "^1.3.0",
102
102
  "okie": "^1.0.1",
103
103
  "open": "^8.4.0",
104
104
  "periscopic": "^2.0.3",
@@ -109,6 +109,7 @@
109
109
  "resolve.exports": "^1.1.0",
110
110
  "rollup-plugin-license": "^2.6.1",
111
111
  "sirv": "^2.0.2",
112
+ "source-map-js": "^1.0.2",
112
113
  "source-map-support": "^0.5.21",
113
114
  "strip-ansi": "^6.0.1",
114
115
  "terser": "^5.12.1",