Socket
Socket
Sign inDemoInstall

vite

Package Overview
Dependencies
171
Maintainers
5
Versions
545
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.0-alpha.3 to 6.0.0-alpha.4

dist/node/chunks/dep-8UjKy9Ch.js

36

dist/node/cli.js

@@ -688,4 +688,3 @@ import path from 'node:path';

const ret = { ...options };
delete ret.environment;
delete ret.all;
delete ret.app;
return ret;

@@ -736,3 +735,3 @@ }

// is ok here
const { createServer } = await import('./chunks/dep-DitPlFWl.js').then(function (n) { return n.C; });
const { createServer } = await import('./chunks/dep-8UjKy9Ch.js').then(function (n) { return n.C; });
try {

@@ -815,6 +814,6 @@ const server = await createServer({

.option('--environment [name]', `[string] build a single environment`)
.option('--all', `[boolean] build all environments`)
.option('--app', `[boolean] same as builder.entireApp`)
.action(async (root, options) => {
filterDuplicateOptions(options);
const { build, createViteBuilder } = await import('./chunks/dep-DitPlFWl.js').then(function (n) { return n.E; });
const { createBuilder, buildEnvironment } = await import('./chunks/dep-8UjKy9Ch.js').then(function (n) { return n.E; });
const buildOptions = cleanGlobalCLIOptions(cleanBuilderCLIOptions(options));

@@ -831,18 +830,15 @@ const config = {

try {
if (options.all || options.environment) {
const builder = await createViteBuilder({}, config);
if (options.environment) {
const environment = builder.environments[options.environment];
if (!environment) {
throw new Error(`The environment ${options.environment} isn't configured.`);
}
await builder.build(environment);
}
else {
// --all: build all environments
await builder.buildEnvironments();
}
const builder = await createBuilder(config);
// TODO: Backward compatibility with lib and single environment build
// Ideally we would move to only building the entire app with this command
if (builder.config.build.lib) {
await buildEnvironment(builder.config, builder.environments.client, builder.config.build.lib);
}
else if (builder.config.builder.entireApp || options.app) {
await builder.buildApp();
}
else {
await build(config);
const ssr = !!builder.config.build.ssr;
const environment = builder.environments[ssr ? 'ssr' : 'client'];
await builder.build(environment);
}

@@ -899,3 +895,3 @@ }

filterDuplicateOptions(options);
const { preview } = await import('./chunks/dep-DitPlFWl.js').then(function (n) { return n.F; });
const { preview } = await import('./chunks/dep-8UjKy9Ch.js').then(function (n) { return n.F; });
try {

@@ -902,0 +898,0 @@ const server = await preview({

export { parseAst, parseAstAsync } from 'rollup/parseAst';
import { i as isInNodeModules, a as arraify } from './chunks/dep-DitPlFWl.js';
export { B as BuildEnvironment, D as DevEnvironment, S as ServerHMRConnector, b as build, h as buildErrorMessage, u as createFilter, j as createNodeDevEnvironment, c as createServer, m as createServerModuleRunner, e as createViteBuilder, d as defineConfig, k as fetchModule, f as formatPostcssSourceMap, y as isFileServingAllowed, l as loadConfigFromFile, z as loadEnv, q as mergeAlias, o as mergeConfig, n as normalizePath, g as preprocessCSS, p as preview, r as resolveConfig, A as resolveEnvPrefix, v as rollupVersion, x as searchForWorkspaceRoot, w as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-DitPlFWl.js';
import { i as isInNodeModules, a as arraify } from './chunks/dep-8UjKy9Ch.js';
export { B as BuildEnvironment, D as DevEnvironment, S as ServerHMRConnector, b as build, h as buildErrorMessage, e as createBuilder, u as createFilter, j as createNodeDevEnvironment, c as createServer, m as createServerModuleRunner, d as defineConfig, k as fetchModule, f as formatPostcssSourceMap, y as isFileServingAllowed, l as loadConfigFromFile, z as loadEnv, q as mergeAlias, o as mergeConfig, n as normalizePath, g as preprocessCSS, p as preview, r as resolveConfig, A as resolveEnvPrefix, v as rollupVersion, x as searchForWorkspaceRoot, w as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-8UjKy9Ch.js';
export { VERSION as version } from './constants.js';

@@ -5,0 +5,0 @@ export { version as esbuildVersion } from 'esbuild';

{
"name": "vite",
"version": "6.0.0-alpha.3",
"version": "6.0.0-alpha.4",
"type": "module",

@@ -117,3 +117,3 @@ "license": "MIT",

"lightningcss": "^1.24.1",
"magic-string": "^0.30.9",
"magic-string": "^0.30.10",
"micromatch": "^4.0.5",

@@ -135,3 +135,3 @@ "mlly": "^1.6.1",

"rollup-plugin-license": "^3.3.1",
"sass": "^1.74.1",
"sass": "^1.75.0",
"sirv": "^2.0.4",

@@ -138,0 +138,0 @@ "source-map-support": "^0.5.21",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc