vite 6.4.1 → 7.1.12

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 (41) hide show
  1. package/LICENSE.md +76 -338
  2. package/README.md +1 -1
  3. package/bin/openChrome.js +68 -0
  4. package/bin/vite.js +7 -7
  5. package/dist/client/client.mjs +893 -921
  6. package/dist/client/env.mjs +14 -19
  7. package/dist/node/chunks/build.js +4 -0
  8. package/dist/node/chunks/build2.js +5523 -0
  9. package/dist/node/chunks/chunk.js +31 -0
  10. package/dist/node/chunks/config.js +36197 -0
  11. package/dist/node/chunks/config2.js +4 -0
  12. package/dist/node/chunks/dist.js +6758 -0
  13. package/dist/node/chunks/lib.js +377 -0
  14. package/dist/node/chunks/logger.js +320 -0
  15. package/dist/node/chunks/moduleRunnerTransport.d.ts +88 -0
  16. package/dist/node/chunks/optimizer.js +4 -0
  17. package/dist/node/chunks/postcss-import.js +479 -0
  18. package/dist/node/chunks/preview.js +4 -0
  19. package/dist/node/chunks/server.js +4 -0
  20. package/dist/node/cli.js +614 -865
  21. package/dist/node/index.d.ts +2692 -3282
  22. package/dist/node/index.js +24 -188
  23. package/dist/node/module-runner.d.ts +251 -234
  24. package/dist/node/module-runner.js +992 -1177
  25. package/package.json +56 -61
  26. package/types/importGlob.d.ts +14 -0
  27. package/types/importMeta.d.ts +1 -2
  28. package/types/internal/cssPreprocessorOptions.d.ts +3 -22
  29. package/types/internal/terserOptions.d.ts +11 -0
  30. package/types/metadata.d.ts +0 -2
  31. package/bin/openChrome.applescript +0 -95
  32. package/dist/node/chunks/dep-3RmXg9uo.js +0 -553
  33. package/dist/node/chunks/dep-C9BXG1mU.js +0 -822
  34. package/dist/node/chunks/dep-CvfTChi5.js +0 -8218
  35. package/dist/node/chunks/dep-D4NMHUTW.js +0 -49531
  36. package/dist/node/chunks/dep-DWMUTS1A.js +0 -7113
  37. package/dist/node/constants.js +0 -149
  38. package/dist/node/moduleRunnerTransport.d-DJ_mE5sf.d.ts +0 -87
  39. package/dist/node-cjs/publicUtils.cjs +0 -3987
  40. package/index.cjs +0 -96
  41. 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,4 @@
1
+ import "./logger.js";
2
+ import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./config.js";
3
+
4
+ export { createBuilder, resolveBuildPlugins };