vite 2.7.9 → 2.7.13

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.

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 build = require('./chunks/dep-4b9dfa16.js');
4
+ var build = require('./chunks/dep-f5552faa.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-4b9dfa16.js'); }).then(function (n) { return n.index$1; });
686
+ const { createServer } = await Promise.resolve().then(function () { return require('./chunks/dep-f5552faa.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: build$1 } = await Promise.resolve().then(function () { return require('./chunks/dep-4b9dfa16.js'); }).then(function (n) { return n.build$1; });
735
+ const { build: build$1 } = await Promise.resolve().then(function () { return require('./chunks/dep-f5552faa.js'); }).then(function (n) { return n.build$1; });
736
736
  const buildOptions = cleanOptions(options);
737
737
  try {
738
738
  await build$1({
@@ -755,7 +755,7 @@ cli
755
755
  .command('optimize [root]')
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-4b9dfa16.js'); }).then(function (n) { return n.index; });
758
+ const { optimizeDeps } = await Promise.resolve().then(function () { return require('./chunks/dep-f5552faa.js'); }).then(function (n) { return n.index; });
759
759
  try {
760
760
  const config = await build.resolveConfig({
761
761
  root,
@@ -1624,6 +1624,13 @@ export declare interface ServerOptions extends CommonServerOptions {
1624
1624
  * Origin for the generated asset URLs.
1625
1625
  */
1626
1626
  origin?: string;
1627
+ /**
1628
+ * Pre-transform known direct imports
1629
+ *
1630
+ * @expiremental this options is expiremental and might be changed in the future
1631
+ * @default true
1632
+ */
1633
+ preTransformRequests?: boolean;
1627
1634
  }
1628
1635
 
1629
1636
  export declare function sortUserPlugins(plugins: (Plugin | Plugin[])[] | undefined): [Plugin[], Plugin[], Plugin[]];
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var build = require('./chunks/dep-4b9dfa16.js');
5
+ var build = require('./chunks/dep-f5552faa.js');
6
6
  require('fs');
7
7
  require('path');
8
8
  require('os');
@@ -46,6 +46,13 @@ export interface ServerOptions extends CommonServerOptions {
46
46
  * Origin for the generated asset URLs.
47
47
  */
48
48
  origin?: string;
49
+ /**
50
+ * Pre-transform known direct imports
51
+ *
52
+ * @expiremental this options is expiremental and might be changed in the future
53
+ * @default true
54
+ */
55
+ preTransformRequests?: boolean;
49
56
  }
50
57
  export interface ResolvedServerOptions extends ServerOptions {
51
58
  fs: Required<FileSystemServeOptions>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "2.7.9",
3
+ "version": "2.7.13",
4
4
  "license": "MIT",
5
5
  "author": "Evan You",
6
6
  "description": "Native-ESM powered web dev build tool",