@voidzero-dev/vite-plus-core 0.1.20-alpha.0 → 0.1.20-alpha.2
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 +23 -538
- package/dist/rolldown/cli.mjs +6 -6
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-index.d.mts +2 -2
- package/dist/rolldown/experimental-index.mjs +8 -8
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +1 -1
- package/dist/rolldown/index.mjs +4 -4
- package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +1 -1
- package/dist/rolldown/plugins-index.d.mts +2 -2
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{bindingify-input-options-CQLSwbb0.mjs → bindingify-input-options-CwT4BXgL.mjs} +4 -4
- package/dist/rolldown/shared/{constructors-Dzji6NUq.mjs → constructors-C2EWPKW3.mjs} +1 -1
- package/dist/rolldown/shared/{constructors-C29s6i8O.d.mts → constructors-D0W3rNfA.d.mts} +1 -1
- package/dist/rolldown/shared/{define-config-DmrIgjVV.d.mts → define-config-5HJ1b9vG.d.mts} +14 -1
- package/dist/rolldown/shared/{error-DAA7ncC5.mjs → error-DL-e8-oE.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-DKK5aKL7.mjs → load-config-DJUKhe3_.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-E9GT23QI.mjs → normalize-string-or-regex-CbQQ69gT.mjs} +1 -1
- package/dist/rolldown/shared/{parse-C4SGmMNT.mjs → parse-BG8jtBbb.mjs} +1 -1
- package/dist/rolldown/shared/{resolve-tsconfig-BVTabsge.mjs → resolve-tsconfig-CfYpGzid.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-DN-NFVZl.mjs → rolldown-DLFt25hZ.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-B-H35squ.mjs → rolldown-build-DrXmg2RO.mjs} +4 -4
- package/dist/rolldown/shared/{watch-DKEzXLor.mjs → watch-MZrSsVh8.mjs} +4 -4
- package/dist/rolldown/utils-index.mjs +2 -2
- package/dist/tsdown/{build-OX8uszs6-4hNTeOrB.js → build-CgGnBlCD-Cyywno42.js} +59 -53
- package/dist/tsdown/{debug-CLlnG64L-CuCVzZmG.js → debug-CLlnG64L-Dn9UYJ-T.js} +2 -2
- package/dist/tsdown/{detect-DN3DXXYt-DtgPLlRO.js → detect-DN3DXXYt-VBvyr4oU.js} +1 -1
- package/dist/tsdown/{dist-CrrE8ZBn.js → dist-CaWgsVeS.js} +13 -13
- package/dist/tsdown/{dist-D_AJtdxQ.js → dist-CbhZqEsp.js} +3 -3
- package/dist/tsdown/{dist-DSi2MWPQ.js → dist-DL4hnQY2.js} +1 -1
- package/dist/tsdown/index-types.d.ts +277 -20353
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/{main-BsfiKQP8.js → main-DZy5NlsL.js} +4 -4
- package/dist/tsdown/npm_entry_picomatch.cjs +6 -0
- package/dist/tsdown/run.js +3 -3
- package/dist/vite/client/client.mjs +17 -15
- package/dist/vite/node/chunks/dist.js +1 -1
- package/dist/vite/node/chunks/dist2.js +13 -0
- package/dist/vite/node/chunks/logger.js +1 -1
- package/dist/vite/node/chunks/node.js +475 -435
- package/dist/vite/node/index.d.ts +3 -3
- package/dist/vite/node/module-runner.d.ts +1 -1
- package/dist/vite/node/module-runner.js +2 -2
- package/package.json +10 -10
- /package/dist/rolldown/shared/{binding-DI_PGVIh.mjs → binding-BeU_1iEk.mjs} +0 -0
package/dist/tsdown/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as globalLogger } from "./main-
|
|
2
|
-
import { t as enableDebug } from "./debug-CLlnG64L-
|
|
3
|
-
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-
|
|
1
|
+
import { c as globalLogger } from "./main-DZy5NlsL.js";
|
|
2
|
+
import { t as enableDebug } from "./debug-CLlnG64L-Dn9UYJ-T.js";
|
|
3
|
+
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-CgGnBlCD-Cyywno42.js";
|
|
4
4
|
import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
|
|
5
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.
|
|
5
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/config.mjs
|
|
6
6
|
function defineConfig(options) {
|
|
7
7
|
return options;
|
|
8
8
|
}
|
|
@@ -6,7 +6,7 @@ import { spawn } from "node:child_process";
|
|
|
6
6
|
import { delimiter, dirname, normalize, resolve } from "node:path";
|
|
7
7
|
import { pipeline } from "node:stream/promises";
|
|
8
8
|
import { PassThrough } from "node:stream";
|
|
9
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.
|
|
9
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/general-D3muxt2f.mjs
|
|
10
10
|
const picomatch = createRequire(import.meta.url)("picomatch");
|
|
11
11
|
function toArray(val, defaultValue) {
|
|
12
12
|
if (Array.isArray(val)) return val;
|
|
@@ -170,7 +170,7 @@ const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible,
|
|
|
170
170
|
module.exports = w, w.default = w;
|
|
171
171
|
})))(), 1)).default;
|
|
172
172
|
//#endregion
|
|
173
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.
|
|
173
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/logger-uV8l1UFa.mjs
|
|
174
174
|
const LogLevels = {
|
|
175
175
|
silent: 0,
|
|
176
176
|
error: 1,
|
|
@@ -294,8 +294,8 @@ function hue2rgb(p, q, t) {
|
|
|
294
294
|
return p;
|
|
295
295
|
}
|
|
296
296
|
//#endregion
|
|
297
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.
|
|
298
|
-
var version = "0.21.
|
|
297
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/package-GYPjxY9U.mjs
|
|
298
|
+
var version = "0.21.10";
|
|
299
299
|
//#endregion
|
|
300
300
|
//#region ../../node_modules/.pnpm/tinyexec@1.1.1/node_modules/tinyexec/dist/main.mjs
|
|
301
301
|
var d = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
@@ -127,6 +127,9 @@ var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
127
127
|
CHAR_UNDERSCORE: 95,
|
|
128
128
|
CHAR_VERTICAL_LINE: 124,
|
|
129
129
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
130
|
+
/**
|
|
131
|
+
* Create EXTGLOB_CHARS
|
|
132
|
+
*/
|
|
130
133
|
extglobChars(chars) {
|
|
131
134
|
return {
|
|
132
135
|
"!": {
|
|
@@ -156,6 +159,9 @@ var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
156
159
|
}
|
|
157
160
|
};
|
|
158
161
|
},
|
|
162
|
+
/**
|
|
163
|
+
* Create GLOB_CHARS
|
|
164
|
+
*/
|
|
159
165
|
globChars(win32) {
|
|
160
166
|
return win32 === true ? WINDOWS_CHARS : POSIX_CHARS;
|
|
161
167
|
}
|
package/dist/tsdown/run.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { _ as yellow, c as globalLogger, m as hex, r as version, t as U, u as blue } from "./main-
|
|
3
|
-
import { t as enableDebug } from "./debug-CLlnG64L-
|
|
2
|
+
import { _ as yellow, c as globalLogger, m as hex, r as version, t as U, u as blue } from "./main-DZy5NlsL.js";
|
|
3
|
+
import { t as enableDebug } from "./debug-CLlnG64L-Dn9UYJ-T.js";
|
|
4
4
|
import module, { createRequire } from "node:module";
|
|
5
5
|
import process$1 from "node:process";
|
|
6
6
|
import { VERSION } from "@voidzero-dev/vite-plus-core/rolldown";
|
|
@@ -630,7 +630,7 @@ cli.command("[...files]", "Bundle files", {
|
|
|
630
630
|
}).option("-c, --config <filename>", "Use a custom config file").option("--config-loader <loader>", "Config loader to use: auto, native, unrun", { default: "auto" }).option("--no-config", "Disable config file").option("-f, --format <format>", "Bundle format: esm, cjs, iife, umd", { default: "esm" }).option("--clean", "Clean output directory, --no-clean to disable").option("--deps.never-bundle <module>", "Mark dependencies as external").option("--minify", "Minify output").option("--devtools", "Enable devtools integration").option("--debug [feat]", "Show debug logs").option("--target <target>", "Bundle target, e.g \"es2015\", \"esnext\"").option("-l, --logLevel <level>", "Set log level: info, warn, error, silent").option("--fail-on-warn", "Fail on warnings", { default: true }).option("--no-write", "Disable writing files to disk, incompatible with watch mode").option("-d, --out-dir <dir>", "Output directory", { default: "dist" }).option("--treeshake", "Tree-shake bundle", { default: true }).option("--sourcemap", "Generate source map", { default: false }).option("--shims", "Enable cjs and esm shims ", { default: false }).option("--platform <platform>", "Target platform", { default: "node" }).option("--dts", "Generate dts files").option("--publint", "Enable publint", { default: false }).option("--attw", "Enable Are the types wrong integration", { default: false }).option("--unused", "Enable unused dependencies check", { default: false }).option("-w, --watch [path]", "Watch mode").option("--ignore-watch <path>", "Ignore custom paths in watch mode").option("--from-vite [vitest]", "Reuse config from Vite or Vitest").option("--report", "Size report", { default: true }).option("--env.* <value>", "Define compile-time env variables").option("--env-file <file>", "Load environment variables from a file, when used together with --env, variables in --env take precedence").option("--env-prefix <prefix>", "Prefix for env variables to inject into the bundle", { default: "TSDOWN_" }).option("--on-success <command>", "Command to run on success").option("--copy <dir>", "Copy files to output dir").option("--public-dir <dir>", "Alias for --copy, deprecated").option("--tsconfig <tsconfig>", "Set tsconfig path").option("--unbundle", "Unbundle mode").option("--root <dir>", "Root directory of input files").option("--exe", "Bundle as executable").option("-W, --workspace [dir]", "Enable workspace mode").option("-F, --filter <pattern>", "Filter configs (cwd or name), e.g. /pkg-name$/ or pkg-name").option("--exports", "Generate export-related metadata for package.json (experimental)").action(async (input, flags) => {
|
|
631
631
|
globalLogger.level = flags.logLevel || "info";
|
|
632
632
|
globalLogger.info(`${blue`tsdown v${version}`} powered by ${hex("#ff7e17")`rolldown v${VERSION}`}`);
|
|
633
|
-
const { build } = await import("./build-
|
|
633
|
+
const { build } = await import("./build-CgGnBlCD-Cyywno42.js").then((n) => n.r).then((n) => n.r);
|
|
634
634
|
if (input.length > 0) flags.entry = input;
|
|
635
635
|
await build(flags);
|
|
636
636
|
});
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import "@vite/env";
|
|
2
|
-
//#region
|
|
2
|
+
//#region ../../node_modules/.pnpm/nanoid@5.1.9/node_modules/nanoid/non-secure/index.js
|
|
3
|
+
let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
4
|
+
let nanoid = (size = 21) => {
|
|
5
|
+
let id = "";
|
|
6
|
+
let i = size | 0;
|
|
7
|
+
while (i--) id += urlAlphabet[Math.random() * 64 | 0];
|
|
8
|
+
return id;
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region \0@oxc-project+runtime@0.127.0/helpers/typeof.js
|
|
3
12
|
function _typeof(o) {
|
|
4
13
|
"@babel/helpers - typeof";
|
|
5
14
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -9,7 +18,7 @@ function _typeof(o) {
|
|
|
9
18
|
}, _typeof(o);
|
|
10
19
|
}
|
|
11
20
|
//#endregion
|
|
12
|
-
//#region \0@oxc-project+runtime@0.
|
|
21
|
+
//#region \0@oxc-project+runtime@0.127.0/helpers/toPrimitive.js
|
|
13
22
|
function toPrimitive(t, r) {
|
|
14
23
|
if ("object" != _typeof(t) || !t) return t;
|
|
15
24
|
var e = t[Symbol.toPrimitive];
|
|
@@ -21,13 +30,13 @@ function toPrimitive(t, r) {
|
|
|
21
30
|
return ("string" === r ? String : Number)(t);
|
|
22
31
|
}
|
|
23
32
|
//#endregion
|
|
24
|
-
//#region \0@oxc-project+runtime@0.
|
|
33
|
+
//#region \0@oxc-project+runtime@0.127.0/helpers/toPropertyKey.js
|
|
25
34
|
function toPropertyKey(t) {
|
|
26
35
|
var i = toPrimitive(t, "string");
|
|
27
36
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
28
37
|
}
|
|
29
38
|
//#endregion
|
|
30
|
-
//#region \0@oxc-project+runtime@0.
|
|
39
|
+
//#region \0@oxc-project+runtime@0.127.0/helpers/defineProperty.js
|
|
31
40
|
function _defineProperty(e, r, t) {
|
|
32
41
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
33
42
|
value: t,
|
|
@@ -220,15 +229,6 @@ var HMRClient = class {
|
|
|
220
229
|
}
|
|
221
230
|
};
|
|
222
231
|
//#endregion
|
|
223
|
-
//#region ../../node_modules/.pnpm/nanoid@5.1.9/node_modules/nanoid/non-secure/index.js
|
|
224
|
-
let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
225
|
-
let nanoid = (size = 21) => {
|
|
226
|
-
let id = "";
|
|
227
|
-
let i = size | 0;
|
|
228
|
-
while (i--) id += urlAlphabet[Math.random() * 64 | 0];
|
|
229
|
-
return id;
|
|
230
|
-
};
|
|
231
|
-
//#endregion
|
|
232
232
|
//#region ../../vite/packages/vite/src/shared/constants.ts
|
|
233
233
|
let SOURCEMAPPING_URL = "sourceMa";
|
|
234
234
|
SOURCEMAPPING_URL += "ppingURL";
|
|
@@ -1220,7 +1220,7 @@ if (isBundleMode && typeof DevRuntime !== "undefined") {
|
|
|
1220
1220
|
}
|
|
1221
1221
|
applyUpdates(_boundaries) {}
|
|
1222
1222
|
}
|
|
1223
|
-
|
|
1223
|
+
const wrappedSocket = { send(message) {
|
|
1224
1224
|
switch (message.type) {
|
|
1225
1225
|
case "hmr:module-registered":
|
|
1226
1226
|
transport.send({
|
|
@@ -1231,7 +1231,9 @@ if (isBundleMode && typeof DevRuntime !== "undefined") {
|
|
|
1231
1231
|
break;
|
|
1232
1232
|
default: throw new Error(`Unknown message type: ${JSON.stringify(message)}`);
|
|
1233
1233
|
}
|
|
1234
|
-
} }
|
|
1234
|
+
} };
|
|
1235
|
+
const clientId = nanoid();
|
|
1236
|
+
(_ref = globalThis).__rolldown_runtime__ ?? (_ref.__rolldown_runtime__ = new ViteDevRuntime(wrappedSocket, clientId));
|
|
1235
1237
|
}
|
|
1236
1238
|
//#endregion
|
|
1237
1239
|
export { ErrorOverlay, createHotContext, injectQuery, removeStyle, updateStyle };
|
|
@@ -446,6 +446,11 @@ var require_anchors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
446
446
|
prevAnchors.add(anchor);
|
|
447
447
|
return anchor;
|
|
448
448
|
},
|
|
449
|
+
/**
|
|
450
|
+
* With circular references, the source node is only resolved after all
|
|
451
|
+
* of its child nodes are. This is why anchors are set only after all of
|
|
452
|
+
* the nodes have been created.
|
|
453
|
+
*/
|
|
449
454
|
setAnchors: () => {
|
|
450
455
|
for (const source of aliasObjects) {
|
|
451
456
|
const ref = sourceObjects.get(source);
|
|
@@ -2187,6 +2192,14 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2187
2192
|
identify: (value) => value instanceof Uint8Array,
|
|
2188
2193
|
default: false,
|
|
2189
2194
|
tag: "tag:yaml.org,2002:binary",
|
|
2195
|
+
/**
|
|
2196
|
+
* Returns a Buffer in node and an Uint8Array in browsers
|
|
2197
|
+
*
|
|
2198
|
+
* To use the resulting buffer as an image, you'll want to do something like:
|
|
2199
|
+
*
|
|
2200
|
+
* const blob = new Blob([buffer], { type: 'image/jpeg' })
|
|
2201
|
+
* document.querySelector('#photo').src = URL.createObjectURL(blob)
|
|
2202
|
+
*/
|
|
2190
2203
|
resolve(src, onError) {
|
|
2191
2204
|
if (typeof node_buffer.Buffer === "function") return node_buffer.Buffer.from(src, "base64");
|
|
2192
2205
|
else if (typeof atob === "function") {
|
|
@@ -72,7 +72,7 @@ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
72
72
|
}));
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region ../../vite/packages/vite/package.json
|
|
75
|
-
var version = "8.0.
|
|
75
|
+
var version = "8.0.10";
|
|
76
76
|
//#endregion
|
|
77
77
|
//#region ../../vite/packages/vite/src/node/constants.ts
|
|
78
78
|
const ROLLUP_HOOKS = [
|