vite 4.4.0-beta.3 → 4.4.0-beta.4
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/chunks/{dep-1e80dfe0.js → dep-12ca0d86.js} +1 -1
- package/dist/node/chunks/{dep-b7b4ad40.js → dep-42f74405.js} +1 -1
- package/dist/node/chunks/{dep-64acfab2.js → dep-e5bde5c9.js} +7715 -7624
- package/dist/node/cli.js +17 -5
- package/dist/node/index.js +2 -2
- package/package.json +5 -5
- package/types/package.json +2 -1
package/dist/node/cli.js
CHANGED
|
@@ -2,7 +2,7 @@ import path from 'node:path';
|
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import { performance } from 'node:perf_hooks';
|
|
4
4
|
import { EventEmitter } from 'events';
|
|
5
|
-
import { C as colors, D as bindShortcuts, x as createLogger, h as resolveConfig } from './chunks/dep-
|
|
5
|
+
import { C as colors, D as bindShortcuts, x as createLogger, h as resolveConfig } from './chunks/dep-e5bde5c9.js';
|
|
6
6
|
import { VERSION } from './constants.js';
|
|
7
7
|
import 'node:fs/promises';
|
|
8
8
|
import 'node:url';
|
|
@@ -702,6 +702,16 @@ function cleanOptions(options) {
|
|
|
702
702
|
delete ret.filter;
|
|
703
703
|
delete ret.m;
|
|
704
704
|
delete ret.mode;
|
|
705
|
+
// convert the sourcemap option to a boolean if necessary
|
|
706
|
+
if ('sourcemap' in ret) {
|
|
707
|
+
const sourcemap = ret.sourcemap;
|
|
708
|
+
ret.sourcemap =
|
|
709
|
+
sourcemap === 'true'
|
|
710
|
+
? true
|
|
711
|
+
: sourcemap === 'false'
|
|
712
|
+
? false
|
|
713
|
+
: ret.sourcemap;
|
|
714
|
+
}
|
|
705
715
|
return ret;
|
|
706
716
|
}
|
|
707
717
|
cli
|
|
@@ -728,7 +738,7 @@ cli
|
|
|
728
738
|
filterDuplicateOptions(options);
|
|
729
739
|
// output structure is preserved even after bundling so require()
|
|
730
740
|
// is ok here
|
|
731
|
-
const { createServer } = await import('./chunks/dep-
|
|
741
|
+
const { createServer } = await import('./chunks/dep-e5bde5c9.js').then(function (n) { return n.I; });
|
|
732
742
|
try {
|
|
733
743
|
const server = await createServer({
|
|
734
744
|
root,
|
|
@@ -806,7 +816,7 @@ cli
|
|
|
806
816
|
.option('-w, --watch', `[boolean] rebuilds when modules have changed on disk`)
|
|
807
817
|
.action(async (root, options) => {
|
|
808
818
|
filterDuplicateOptions(options);
|
|
809
|
-
const { build } = await import('./chunks/dep-
|
|
819
|
+
const { build } = await import('./chunks/dep-e5bde5c9.js').then(function (n) { return n.H; });
|
|
810
820
|
const buildOptions = cleanOptions(options);
|
|
811
821
|
try {
|
|
812
822
|
await build({
|
|
@@ -834,7 +844,7 @@ cli
|
|
|
834
844
|
.option('--force', `[boolean] force the optimizer to ignore the cache and re-bundle`)
|
|
835
845
|
.action(async (root, options) => {
|
|
836
846
|
filterDuplicateOptions(options);
|
|
837
|
-
const { optimizeDeps } = await import('./chunks/dep-
|
|
847
|
+
const { optimizeDeps } = await import('./chunks/dep-e5bde5c9.js').then(function (n) { return n.G; });
|
|
838
848
|
try {
|
|
839
849
|
const config = await resolveConfig({
|
|
840
850
|
root,
|
|
@@ -850,6 +860,7 @@ cli
|
|
|
850
860
|
process.exit(1);
|
|
851
861
|
}
|
|
852
862
|
});
|
|
863
|
+
// preview
|
|
853
864
|
cli
|
|
854
865
|
.command('preview [root]', 'locally preview production build')
|
|
855
866
|
.option('--host [host]', `[string] specify hostname`)
|
|
@@ -860,7 +871,7 @@ cli
|
|
|
860
871
|
.option('--outDir <dir>', `[string] output directory (default: dist)`)
|
|
861
872
|
.action(async (root, options) => {
|
|
862
873
|
filterDuplicateOptions(options);
|
|
863
|
-
const { preview } = await import('./chunks/dep-
|
|
874
|
+
const { preview } = await import('./chunks/dep-e5bde5c9.js').then(function (n) { return n.J; });
|
|
864
875
|
try {
|
|
865
876
|
const server = await preview({
|
|
866
877
|
root,
|
|
@@ -880,6 +891,7 @@ cli
|
|
|
880
891
|
},
|
|
881
892
|
});
|
|
882
893
|
server.printUrls();
|
|
894
|
+
bindShortcuts(server, { print: true });
|
|
883
895
|
}
|
|
884
896
|
catch (e) {
|
|
885
897
|
createLogger(options.logLevel).error(colors.red(`error when starting preview server:\n${e.stack}`), { error: e });
|
package/dist/node/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as isInNodeModules } from './chunks/dep-
|
|
2
|
-
export { b as build, e as buildErrorMessage, v as createFilter, x as createLogger, c as createServer, g as defineConfig, f as formatPostcssSourceMap, k as getDepOptimizationConfig, m as isDepsOptimizerEnabled, z as isFileServingAllowed, l as loadConfigFromFile, A as loadEnv, u as mergeAlias, q as mergeConfig, n as normalizePath, o as optimizeDeps, a as preprocessCSS, p as preview, j as resolveBaseUrl, h as resolveConfig, B as resolveEnvPrefix, d as resolvePackageData, r as resolvePackageEntry, y as searchForWorkspaceRoot, w as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-
|
|
1
|
+
import { i as isInNodeModules } from './chunks/dep-e5bde5c9.js';
|
|
2
|
+
export { b as build, e as buildErrorMessage, v as createFilter, x as createLogger, c as createServer, g as defineConfig, f as formatPostcssSourceMap, k as getDepOptimizationConfig, m as isDepsOptimizerEnabled, z as isFileServingAllowed, l as loadConfigFromFile, A as loadEnv, u as mergeAlias, q as mergeConfig, n as normalizePath, o as optimizeDeps, a as preprocessCSS, p as preview, j as resolveBaseUrl, h as resolveConfig, B as resolveEnvPrefix, d as resolvePackageData, r as resolvePackageEntry, y as searchForWorkspaceRoot, w as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-e5bde5c9.js';
|
|
3
3
|
export { VERSION as version } from './constants.js';
|
|
4
4
|
export { version as esbuildVersion } from 'esbuild';
|
|
5
5
|
export { VERSION as rollupVersion } from 'rollup';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite",
|
|
3
|
-
"version": "4.4.0-beta.
|
|
3
|
+
"version": "4.4.0-beta.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Evan You",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"esbuild": "^0.18.
|
|
70
|
+
"esbuild": "^0.18.10",
|
|
71
71
|
"postcss": "^8.4.24",
|
|
72
72
|
"rollup": "^3.25.2"
|
|
73
73
|
},
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@babel/types": "^7.22.5",
|
|
81
81
|
"@jridgewell/trace-mapping": "^0.3.18",
|
|
82
82
|
"@rollup/plugin-alias": "^4.0.4",
|
|
83
|
-
"@rollup/plugin-commonjs": "^25.0.
|
|
83
|
+
"@rollup/plugin-commonjs": "^25.0.2",
|
|
84
84
|
"@rollup/plugin-dynamic-import-vars": "^2.0.3",
|
|
85
85
|
"@rollup/plugin-json": "^6.0.0",
|
|
86
86
|
"@rollup/plugin-node-resolve": "15.1.0",
|
|
@@ -109,10 +109,10 @@
|
|
|
109
109
|
"http-proxy": "^1.18.1",
|
|
110
110
|
"json-stable-stringify": "^1.0.2",
|
|
111
111
|
"launch-editor-middleware": "^2.6.0",
|
|
112
|
-
"lightningcss": "^1.21.
|
|
112
|
+
"lightningcss": "^1.21.1",
|
|
113
113
|
"magic-string": "^0.30.0",
|
|
114
114
|
"micromatch": "^4.0.5",
|
|
115
|
-
"mlly": "^1.
|
|
115
|
+
"mlly": "^1.4.0",
|
|
116
116
|
"mrmime": "^1.0.1",
|
|
117
117
|
"okie": "^1.0.1",
|
|
118
118
|
"open": "^8.4.2",
|
package/types/package.json
CHANGED