vite 3.0.0-beta.8 → 3.0.0-beta.9
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.
- package/dist/node/chunks/{dep-0921e73a.js → dep-21ac9d2b.js} +1 -1
- package/dist/node/chunks/{dep-001f95ce.js → dep-235df460.js} +1 -1
- package/dist/node/chunks/{dep-5ccc5f38.js → dep-58325dc2.js} +20 -14
- package/dist/node/cli.js +5 -5
- package/dist/node/constants.js +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node-cjs/publicUtils.cjs +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as getAugmentedNamespace, B as getDefaultExportFromCjs } from './dep-
|
|
1
|
+
import { A as getAugmentedNamespace, B as getDefaultExportFromCjs } from './dep-58325dc2.js';
|
|
2
2
|
|
|
3
3
|
import { fileURLToPath as __cjs_fileURLToPath } from 'node:url';
|
|
4
4
|
import { dirname as __cjs_dirname } from 'node:path';
|
|
@@ -37958,18 +37958,22 @@ function createIsConfiguredAsSsrExternal(config) {
|
|
|
37958
37958
|
const noExternalFilter = noExternal !== 'undefined' &&
|
|
37959
37959
|
typeof noExternal !== 'boolean' &&
|
|
37960
37960
|
createFilter(undefined, noExternal, { resolve: false });
|
|
37961
|
+
// Returns true if it is configured as external, false if it is filtered
|
|
37962
|
+
// by noExternal and undefined if it isn't affected by the explicit config
|
|
37961
37963
|
return (id) => {
|
|
37962
37964
|
const { ssr } = config;
|
|
37963
|
-
if (
|
|
37964
|
-
|
|
37965
|
-
|
|
37966
|
-
|
|
37967
|
-
|
|
37968
|
-
|
|
37969
|
-
|
|
37970
|
-
|
|
37965
|
+
if (ssr) {
|
|
37966
|
+
if (ssr.external?.includes(id)) {
|
|
37967
|
+
return true;
|
|
37968
|
+
}
|
|
37969
|
+
if (typeof noExternal === 'boolean') {
|
|
37970
|
+
return !noExternal;
|
|
37971
|
+
}
|
|
37972
|
+
if (noExternalFilter && !noExternalFilter(id)) {
|
|
37973
|
+
return false;
|
|
37974
|
+
}
|
|
37971
37975
|
}
|
|
37972
|
-
return
|
|
37976
|
+
return undefined;
|
|
37973
37977
|
};
|
|
37974
37978
|
}
|
|
37975
37979
|
function createIsSsrExternal(config) {
|
|
@@ -37993,9 +37997,11 @@ function createIsSsrExternal(config) {
|
|
|
37993
37997
|
if (processedIds.has(id)) {
|
|
37994
37998
|
return processedIds.get(id);
|
|
37995
37999
|
}
|
|
37996
|
-
|
|
37997
|
-
|
|
37998
|
-
|
|
38000
|
+
let external = false;
|
|
38001
|
+
if (!id.startsWith('.') && !path$n.isAbsolute(id)) {
|
|
38002
|
+
external =
|
|
38003
|
+
isBuiltin(id) || (isConfiguredAsExternal(id) ?? isValidPackageEntry(id));
|
|
38004
|
+
}
|
|
37999
38005
|
processedIds.set(id, external);
|
|
38000
38006
|
return external;
|
|
38001
38007
|
};
|
|
@@ -41021,7 +41027,7 @@ const assetAttrsConfig = {
|
|
|
41021
41027
|
const isAsyncScriptMap = new WeakMap();
|
|
41022
41028
|
async function traverseHtml(html, filePath, visitor) {
|
|
41023
41029
|
// lazy load compiler
|
|
41024
|
-
const { parse, transform } = await import('./dep-
|
|
41030
|
+
const { parse, transform } = await import('./dep-235df460.js').then(function (n) { return n.c; });
|
|
41025
41031
|
// @vue/compiler-core doesn't like lowercase doctypes
|
|
41026
41032
|
html = html.replace(/<!doctype\s/i, '<!DOCTYPE ');
|
|
41027
41033
|
try {
|
|
@@ -42151,7 +42157,7 @@ async function compileCSS(id, code, config, urlReplacer, atImportResolvers, serv
|
|
|
42151
42157
|
logger: config.logger
|
|
42152
42158
|
}));
|
|
42153
42159
|
if (isModule) {
|
|
42154
|
-
postcssPlugins.unshift((await import('./dep-
|
|
42160
|
+
postcssPlugins.unshift((await import('./dep-21ac9d2b.js').then(function (n) { return n.i; })).default({
|
|
42155
42161
|
...modulesOptions,
|
|
42156
42162
|
getJSON(cssFileName, _modules, outputFileName) {
|
|
42157
42163
|
modules = _modules;
|
package/dist/node/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { performance } from 'node:perf_hooks';
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
|
-
import { y as picocolors, u as createLogger, e as resolveConfig } from './chunks/dep-
|
|
3
|
+
import { y as picocolors, u as createLogger, e as resolveConfig } from './chunks/dep-58325dc2.js';
|
|
4
4
|
import { VERSION } from './constants.js';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'node:path';
|
|
@@ -694,7 +694,7 @@ cli
|
|
|
694
694
|
.action(async (root, options) => {
|
|
695
695
|
// output structure is preserved even after bundling so require()
|
|
696
696
|
// is ok here
|
|
697
|
-
const { createServer } = await import('./chunks/dep-
|
|
697
|
+
const { createServer } = await import('./chunks/dep-58325dc2.js').then(function (n) { return n.E; });
|
|
698
698
|
try {
|
|
699
699
|
const server = await createServer({
|
|
700
700
|
root,
|
|
@@ -741,7 +741,7 @@ cli
|
|
|
741
741
|
.option('--emptyOutDir', `[boolean] force empty outDir when it's outside of root`)
|
|
742
742
|
.option('-w, --watch', `[boolean] rebuilds when modules have changed on disk`)
|
|
743
743
|
.action(async (root, options) => {
|
|
744
|
-
const { build } = await import('./chunks/dep-
|
|
744
|
+
const { build } = await import('./chunks/dep-58325dc2.js').then(function (n) { return n.D; });
|
|
745
745
|
const buildOptions = cleanOptions(options);
|
|
746
746
|
try {
|
|
747
747
|
await build({
|
|
@@ -765,7 +765,7 @@ cli
|
|
|
765
765
|
.command('optimize [root]', 'pre-bundle dependencies')
|
|
766
766
|
.option('--force', `[boolean] force the optimizer to ignore the cache and re-bundle`)
|
|
767
767
|
.action(async (root, options) => {
|
|
768
|
-
const { optimizeDeps } = await import('./chunks/dep-
|
|
768
|
+
const { optimizeDeps } = await import('./chunks/dep-58325dc2.js').then(function (n) { return n.C; });
|
|
769
769
|
try {
|
|
770
770
|
const config = await resolveConfig({
|
|
771
771
|
root,
|
|
@@ -788,7 +788,7 @@ cli
|
|
|
788
788
|
.option('--https', `[boolean] use TLS + HTTP/2`)
|
|
789
789
|
.option('--open [path]', `[boolean | string] open browser on startup`)
|
|
790
790
|
.action(async (root, options) => {
|
|
791
|
-
const { preview } = await import('./chunks/dep-
|
|
791
|
+
const { preview } = await import('./chunks/dep-58325dc2.js').then(function (n) { return n.F; });
|
|
792
792
|
try {
|
|
793
793
|
const server = await preview({
|
|
794
794
|
root,
|
package/dist/node/constants.js
CHANGED
package/dist/node/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as build, k as createFilter, u as createLogger, c as createServer, d as defineConfig, f as formatPostcssSourceMap, h as getDepOptimizationConfig, i as isDepsOptimizerEnabled, l as loadConfigFromFile, w as loadEnv, j as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, p as preview, g as resolveBaseUrl, e as resolveConfig, x as resolveEnvPrefix, a as resolvePackageData, r as resolvePackageEntry, v as searchForWorkspaceRoot, q as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-
|
|
1
|
+
export { b as build, k as createFilter, u as createLogger, c as createServer, d as defineConfig, f as formatPostcssSourceMap, h as getDepOptimizationConfig, i as isDepsOptimizerEnabled, l as loadConfigFromFile, w as loadEnv, j as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, p as preview, g as resolveBaseUrl, e as resolveConfig, x as resolveEnvPrefix, a as resolvePackageData, r as resolvePackageEntry, v as searchForWorkspaceRoot, q as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-58325dc2.js';
|
|
2
2
|
export { VERSION as version } from './constants.js';
|
|
3
3
|
export { version as esbuildVersion } from 'esbuild';
|
|
4
4
|
export { VERSION as rollupVersion } from 'rollup';
|
|
@@ -31,7 +31,7 @@ var require$$1__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$1$1);
|
|
|
31
31
|
var readline__default = /*#__PURE__*/_interopDefaultLegacy(readline);
|
|
32
32
|
var require$$2__default = /*#__PURE__*/_interopDefaultLegacy(require$$2);
|
|
33
33
|
|
|
34
|
-
var version = "3.0.0-beta.
|
|
34
|
+
var version = "3.0.0-beta.9";
|
|
35
35
|
|
|
36
36
|
const VERSION = version;
|
|
37
37
|
const VITE_PACKAGE_DIR = path$3.resolve(
|