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/CHANGELOG.md +45 -0
- package/dist/node/chunks/{dep-0cbbc772.js → dep-4e5ae969.js} +2 -2
- package/dist/node/chunks/{dep-0cbbc772.js.map → dep-4e5ae969.js.map} +1 -1
- package/dist/node/chunks/{dep-37807119.js → dep-61b103b4.js} +2 -2
- package/dist/node/chunks/{dep-37807119.js.map → dep-61b103b4.js.map} +1 -1
- package/dist/node/chunks/{dep-6e9ef787.js → dep-9fc73d70.js} +2 -2
- package/dist/node/chunks/{dep-6e9ef787.js.map → dep-9fc73d70.js.map} +1 -1
- package/dist/node/chunks/{dep-4b9dfa16.js → dep-f5552faa.js} +109 -77
- package/dist/node/chunks/{dep-4b9dfa16.js.map → dep-f5552faa.js.map} +1 -1
- package/dist/node/cli.js +4 -4
- package/dist/node/index.d.ts +7 -0
- package/dist/node/index.js +1 -1
- package/dist/node/server/index.d.ts +7 -0
- package/package.json +1 -1
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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,
|
package/dist/node/index.d.ts
CHANGED
|
@@ -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[]];
|
package/dist/node/index.js
CHANGED
|
@@ -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>;
|