vite 6.3.5 → 7.0.0-beta.1

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.
Files changed (34) hide show
  1. package/LICENSE.md +29 -0
  2. package/bin/vite.js +4 -4
  3. package/dist/client/client.mjs +793 -921
  4. package/dist/client/env.mjs +14 -19
  5. package/dist/node/chunks/dep-3PhSlasG.js +5 -0
  6. package/dist/node/chunks/dep-B4i1tHPo.js +30 -0
  7. package/dist/node/chunks/dep-BO5GbxpL.js +7345 -0
  8. package/dist/node/chunks/dep-BaSfMtGz.js +5 -0
  9. package/dist/node/chunks/dep-Bb92EWrU.js +5 -0
  10. package/dist/node/chunks/dep-C9KS6hrN.js +5 -0
  11. package/dist/node/chunks/dep-Ctugieod.js +150 -0
  12. package/dist/node/chunks/dep-D5HXLrlI.js +378 -0
  13. package/dist/node/chunks/dep-Da5Rc_CS.js +36548 -0
  14. package/dist/node/chunks/dep-Dg4W3IAQ.js +5597 -0
  15. package/dist/node/chunks/dep-uSUFJk9A.js +446 -0
  16. package/dist/node/cli.js +617 -865
  17. package/dist/node/constants.js +3 -148
  18. package/dist/node/index.d.ts +2724 -3124
  19. package/dist/node/index.js +25 -188
  20. package/dist/node/module-runner.d.ts +243 -234
  21. package/dist/node/module-runner.js +1043 -1172
  22. package/dist/node/moduleRunnerTransport-BWUZBVLX.d.ts +88 -0
  23. package/package.json +38 -41
  24. package/types/importGlob.d.ts +4 -0
  25. package/types/internal/cssPreprocessorOptions.d.ts +3 -22
  26. package/dist/node/chunks/dep-3RmXg9uo.js +0 -553
  27. package/dist/node/chunks/dep-AiMcmC_f.js +0 -822
  28. package/dist/node/chunks/dep-CvfTChi5.js +0 -8218
  29. package/dist/node/chunks/dep-DBxKXgDP.js +0 -49496
  30. package/dist/node/chunks/dep-SgSik2vo.js +0 -7113
  31. package/dist/node/moduleRunnerTransport.d-DJ_mE5sf.d.ts +0 -87
  32. package/dist/node-cjs/publicUtils.cjs +0 -3986
  33. package/index.cjs +0 -96
  34. package/index.d.cts +0 -6
@@ -1,24 +1,19 @@
1
+ //#region src/client/env.ts
1
2
  const context = (() => {
2
- if (typeof globalThis !== "undefined") {
3
- return globalThis;
4
- } else if (typeof self !== "undefined") {
5
- return self;
6
- } else if (typeof window !== "undefined") {
7
- return window;
8
- } else {
9
- return Function("return this")();
10
- }
3
+ if (typeof globalThis !== "undefined") return globalThis;
4
+ else if (typeof self !== "undefined") return self;
5
+ else if (typeof window !== "undefined") return window;
6
+ else return Function("return this")();
11
7
  })();
12
8
  const defines = __DEFINES__;
13
9
  Object.keys(defines).forEach((key) => {
14
- const segments = key.split(".");
15
- let target = context;
16
- for (let i = 0; i < segments.length; i++) {
17
- const segment = segments[i];
18
- if (i === segments.length - 1) {
19
- target[segment] = defines[key];
20
- } else {
21
- target = target[segment] || (target[segment] = {});
22
- }
23
- }
10
+ const segments = key.split(".");
11
+ let target = context;
12
+ for (let i = 0; i < segments.length; i++) {
13
+ const segment = segments[i];
14
+ if (i === segments.length - 1) target[segment] = defines[key];
15
+ else target = target[segment] || (target[segment] = {});
16
+ }
24
17
  });
18
+
19
+ //#endregion
@@ -0,0 +1,5 @@
1
+ import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
2
+ import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./dep-Da5Rc_CS.js";
3
+ import "./dep-Ctugieod.js";
4
+
5
+ export { createBuilder, resolveBuildPlugins };
@@ -0,0 +1,30 @@
1
+ import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
2
+ import { createRequire } from "node:module";
3
+
4
+ //#region rolldown:runtime
5
+ var __create = Object.create;
6
+ var __defProp = Object.defineProperty;
7
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
+ var __getOwnPropNames = Object.getOwnPropertyNames;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __commonJS = (cb, mod) => function() {
12
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
16
+ key = keys[i];
17
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
+ get: ((k) => from[k]).bind(null, key),
19
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
+ });
21
+ }
22
+ return to;
23
+ };
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
25
+ value: mod,
26
+ enumerable: true
27
+ }) : target, mod));
28
+
29
+ //#endregion
30
+ export { __commonJS, __toESM };