@depup/vite 7.3.1-depup.0
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/LICENSE.md +2120 -0
- package/README.md +20 -0
- package/bin/openChrome.js +68 -0
- package/bin/vite.js +79 -0
- package/client.d.ts +279 -0
- package/dist/client/client.mjs +1106 -0
- package/dist/client/env.mjs +19 -0
- package/dist/node/chunks/build.js +4 -0
- package/dist/node/chunks/build2.js +5538 -0
- package/dist/node/chunks/chunk.js +48 -0
- package/dist/node/chunks/config.js +35978 -0
- package/dist/node/chunks/config2.js +4 -0
- package/dist/node/chunks/dist.js +6758 -0
- package/dist/node/chunks/lib.js +377 -0
- package/dist/node/chunks/logger.js +329 -0
- package/dist/node/chunks/moduleRunnerTransport.d.ts +96 -0
- package/dist/node/chunks/optimizer.js +4 -0
- package/dist/node/chunks/postcss-import.js +479 -0
- package/dist/node/chunks/preview.js +4 -0
- package/dist/node/chunks/server.js +4 -0
- package/dist/node/cli.js +698 -0
- package/dist/node/index.d.ts +3713 -0
- package/dist/node/index.js +30 -0
- package/dist/node/module-runner.d.ts +311 -0
- package/dist/node/module-runner.js +1160 -0
- package/misc/false.js +1 -0
- package/misc/true.js +1 -0
- package/package.json +199 -0
- package/types/customEvent.d.ts +50 -0
- package/types/hmrPayload.d.ts +74 -0
- package/types/hot.d.ts +39 -0
- package/types/import-meta.d.ts +5 -0
- package/types/importGlob.d.ts +89 -0
- package/types/importMeta.d.ts +30 -0
- package/types/internal/cssPreprocessorOptions.d.ts +44 -0
- package/types/internal/lightningcssOptions.d.ts +18 -0
- package/types/internal/terserOptions.d.ts +11 -0
- package/types/metadata.d.ts +33 -0
- package/types/package.json +4 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/client/env.ts
|
|
2
|
+
const context = (() => {
|
|
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")();
|
|
7
|
+
})();
|
|
8
|
+
const defines = __DEFINES__;
|
|
9
|
+
Object.keys(defines).forEach((key) => {
|
|
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
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "./logger.js";
|
|
2
|
+
import { A as toOutputFilePathInCss, C as onRollupLog, D as resolveBuilderOptions, E as resolveBuildPlugins, M as toOutputFilePathInJS, N as toOutputFilePathWithoutRuntime, O as resolveLibFilename, S as injectEnvironmentToHooks, T as resolveBuildOutputs, _ as build, b as createBuilder, g as BuildEnvironment, j as toOutputFilePathInHtml, k as resolveUserExternal, v as buildEnvironmentOptionsDefaults, w as resolveBuildEnvironmentOptions, x as createToImportMetaURLBasedRelativeRuntime, y as builderOptionsDefaults } from "./config.js";
|
|
3
|
+
|
|
4
|
+
export { createBuilder, resolveBuildPlugins };
|