@voidzero-dev/vite-plus-core 0.0.0-0bfcc90f.20260209-0731
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 +41 -0
- package/dist/pluginutils/filter/composable-filters.d.ts +90 -0
- package/dist/pluginutils/filter/composable-filters.js +256 -0
- package/dist/pluginutils/filter/filter-vite-plugins.d.ts +28 -0
- package/dist/pluginutils/filter/filter-vite-plugins.js +75 -0
- package/dist/pluginutils/filter/index.d.ts +3 -0
- package/dist/pluginutils/filter/index.js +3 -0
- package/dist/pluginutils/filter/simple-filters.d.ts +71 -0
- package/dist/pluginutils/filter/simple-filters.js +70 -0
- package/dist/pluginutils/index.d.ts +1 -0
- package/dist/pluginutils/index.js +1 -0
- package/dist/pluginutils/utils.d.ts +2 -0
- package/dist/pluginutils/utils.js +17 -0
- package/dist/rolldown/cli-setup.d.mts +1 -0
- package/dist/rolldown/cli-setup.mjs +17 -0
- package/dist/rolldown/cli.d.mts +1 -0
- package/dist/rolldown/cli.mjs +608 -0
- package/dist/rolldown/config.d.mts +7 -0
- package/dist/rolldown/config.mjs +10 -0
- package/dist/rolldown/experimental-index.d.mts +194 -0
- package/dist/rolldown/experimental-index.mjs +291 -0
- package/dist/rolldown/experimental-runtime-types.d.ts +98 -0
- package/dist/rolldown/filter-index.d.mts +197 -0
- package/dist/rolldown/filter-index.mjs +369 -0
- package/dist/rolldown/get-log-filter.d.mts +7 -0
- package/dist/rolldown/get-log-filter.mjs +47 -0
- package/dist/rolldown/index.d.mts +4 -0
- package/dist/rolldown/index.mjs +57 -0
- package/dist/rolldown/parallel-plugin-worker.d.mts +1 -0
- package/dist/rolldown/parallel-plugin-worker.mjs +32 -0
- package/dist/rolldown/parallel-plugin.d.mts +14 -0
- package/dist/rolldown/parallel-plugin.mjs +7 -0
- package/dist/rolldown/parse-ast-index.d.mts +8 -0
- package/dist/rolldown/parse-ast-index.mjs +47 -0
- package/dist/rolldown/plugins-index.d.mts +30 -0
- package/dist/rolldown/plugins-index.mjs +40 -0
- package/dist/rolldown/shared/binding-D-XMzSaG.d.mts +1665 -0
- package/dist/rolldown/shared/binding-DuOSzYPt.mjs +587 -0
- package/dist/rolldown/shared/bindingify-input-options-Bu6nUTgS.mjs +2257 -0
- package/dist/rolldown/shared/constructors-DZVRHTli.mjs +61 -0
- package/dist/rolldown/shared/constructors-KD7LvxpN.d.mts +28 -0
- package/dist/rolldown/shared/define-config-BVG4QvnP.mjs +7 -0
- package/dist/rolldown/shared/define-config-U4pj0ZDn.d.mts +3616 -0
- package/dist/rolldown/shared/load-config-O1K_tT_z.mjs +114 -0
- package/dist/rolldown/shared/logging-CE90D8JR.d.mts +50 -0
- package/dist/rolldown/shared/logs-NH298mHo.mjs +183 -0
- package/dist/rolldown/shared/misc-CCZIsXVO.mjs +22 -0
- package/dist/rolldown/shared/normalize-string-or-regex-DeZqg15i.mjs +61 -0
- package/dist/rolldown/shared/parse-DLraxqjd.mjs +56 -0
- package/dist/rolldown/shared/prompt-DeISmFRp.mjs +847 -0
- package/dist/rolldown/shared/rolldown-O0UKbTKf.mjs +42 -0
- package/dist/rolldown/shared/rolldown-build-BIs7C4B_.mjs +3354 -0
- package/dist/rolldown/shared/watch-DQXGaDjx.mjs +379 -0
- package/dist/tsdown/build-l5WhXg4M-BBPqZr0m.js +4933 -0
- package/dist/tsdown/chunk-CdeBBKNj.js +44 -0
- package/dist/tsdown/debug-Cb_Nqpo4-BueIRvg1.js +18 -0
- package/dist/tsdown/detect-CCATtVj7-B86m8IqW.js +165 -0
- package/dist/tsdown/dist-BUOkzr_P.js +201 -0
- package/dist/tsdown/dist-BVMGwPdF.js +32363 -0
- package/dist/tsdown/dist-dc0X0G6b.js +742 -0
- package/dist/tsdown/filename-7rlgePeo.js +31 -0
- package/dist/tsdown/index-node-BjDys8jy--sqPE5mM.js +251 -0
- package/dist/tsdown/index-types.d.ts +2163 -0
- package/dist/tsdown/index.js +14 -0
- package/dist/tsdown/main-d9yZSQqW.js +926 -0
- package/dist/tsdown/node-Cb5OsnKg.js +271 -0
- package/dist/tsdown/npm_cjs_chunk_chunk.cjs +11 -0
- package/dist/tsdown/npm_cjs_chunk_range.cjs +484 -0
- package/dist/tsdown/npm_cjs_chunk_semver.cjs +362 -0
- package/dist/tsdown/npm_entry_picomatch.cjs +1676 -0
- package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +52 -0
- package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +23 -0
- package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +48 -0
- package/dist/tsdown/npm_entry_tree-kill.cjs +103 -0
- package/dist/tsdown/resolver-j7HY1N36-CIu_7LX6.js +20 -0
- package/dist/tsdown/run.js +537 -0
- package/dist/tsdown/tsc-context-BNYuT3cE.js +25 -0
- package/dist/tsdown/tsc-reo6aLWc.js +423 -0
- package/dist/vite/client/client.mjs +1140 -0
- package/dist/vite/client/env.mjs +19 -0
- package/dist/vite/client.d.ts +279 -0
- package/dist/vite/misc/false.d.ts +2 -0
- package/dist/vite/misc/false.js +1 -0
- package/dist/vite/misc/true.d.ts +2 -0
- package/dist/vite/misc/true.js +1 -0
- package/dist/vite/node/chunks/build2.js +5538 -0
- package/dist/vite/node/chunks/chunk.js +45 -0
- package/dist/vite/node/chunks/dist.js +6758 -0
- package/dist/vite/node/chunks/dist2.js +6651 -0
- package/dist/vite/node/chunks/fetchableEnvironments.js +41395 -0
- package/dist/vite/node/chunks/lib.js +377 -0
- package/dist/vite/node/chunks/logger.js +332 -0
- package/dist/vite/node/chunks/moduleRunnerTransport.d.ts +96 -0
- package/dist/vite/node/chunks/postcss-import.js +479 -0
- package/dist/vite/node/cli.js +699 -0
- package/dist/vite/node/index.d.ts +3807 -0
- package/dist/vite/node/index.js +15 -0
- package/dist/vite/node/internal.d.ts +2 -0
- package/dist/vite/node/internal.js +3 -0
- package/dist/vite/node/module-runner.d.ts +311 -0
- package/dist/vite/node/module-runner.js +1159 -0
- package/dist/vite/types/customEvent.d.ts +52 -0
- package/dist/vite/types/hmrPayload.d.ts +80 -0
- package/dist/vite/types/hot.d.ts +39 -0
- package/dist/vite/types/import-meta.d.ts +5 -0
- package/dist/vite/types/importGlob.d.ts +89 -0
- package/dist/vite/types/importMeta.d.ts +30 -0
- package/dist/vite/types/internal/cssPreprocessorOptions.d.ts +44 -0
- package/dist/vite/types/internal/esbuildOptions.d.ts +28 -0
- package/dist/vite/types/internal/lightningcssOptions.d.ts +18 -0
- package/dist/vite/types/internal/rollupTypeCompat.d.ts +24 -0
- package/dist/vite/types/internal/terserOptions.d.ts +11 -0
- package/dist/vite/types/metadata.d.ts +47 -0
- package/package.json +204 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const require_chunk = require('./npm_cjs_chunk_chunk.cjs');
|
|
2
|
+
const require_semver$1 = require('./npm_cjs_chunk_semver.cjs');
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.js
|
|
5
|
+
var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
6
|
+
const SemVer = require_semver$1.require_semver();
|
|
7
|
+
const parse = (version, options, throwErrors = false) => {
|
|
8
|
+
if (version instanceof SemVer) return version;
|
|
9
|
+
try {
|
|
10
|
+
return new SemVer(version, options);
|
|
11
|
+
} catch (er) {
|
|
12
|
+
if (!throwErrors) return null;
|
|
13
|
+
throw er;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
module.exports = parse;
|
|
17
|
+
}));
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.js
|
|
21
|
+
var require_coerce = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
22
|
+
const SemVer = require_semver$1.require_semver();
|
|
23
|
+
const parse = require_parse();
|
|
24
|
+
const { safeRe: re, t } = require_semver$1.require_re();
|
|
25
|
+
const coerce = (version, options) => {
|
|
26
|
+
if (version instanceof SemVer) return version;
|
|
27
|
+
if (typeof version === "number") version = String(version);
|
|
28
|
+
if (typeof version !== "string") return null;
|
|
29
|
+
options = options || {};
|
|
30
|
+
let match = null;
|
|
31
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
32
|
+
else {
|
|
33
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
34
|
+
let next;
|
|
35
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
36
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
37
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
38
|
+
}
|
|
39
|
+
coerceRtlRegex.lastIndex = -1;
|
|
40
|
+
}
|
|
41
|
+
if (match === null) return null;
|
|
42
|
+
const major = match[2];
|
|
43
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
44
|
+
};
|
|
45
|
+
module.exports = coerce;
|
|
46
|
+
}));
|
|
47
|
+
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region dist/tsdown/_npm_entry_semver_functions_coerce.cjs
|
|
50
|
+
module.exports = require_coerce();
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_chunk = require('./npm_cjs_chunk_chunk.cjs');
|
|
2
|
+
require('./npm_cjs_chunk_semver.cjs');
|
|
3
|
+
const require_range$1 = require('./npm_cjs_chunk_range.cjs');
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.js
|
|
6
|
+
var require_satisfies = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
7
|
+
const Range = require_range$1.require_range();
|
|
8
|
+
const satisfies = (version, range, options) => {
|
|
9
|
+
try {
|
|
10
|
+
range = new Range(range, options);
|
|
11
|
+
} catch (er) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
return range.test(version);
|
|
15
|
+
};
|
|
16
|
+
module.exports = satisfies;
|
|
17
|
+
}));
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region dist/tsdown/_npm_entry_semver_functions_satisfies.cjs
|
|
21
|
+
module.exports = require_satisfies();
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const require_chunk = require('./npm_cjs_chunk_chunk.cjs');
|
|
2
|
+
const require_semver$1 = require('./npm_cjs_chunk_semver.cjs');
|
|
3
|
+
const require_range$1 = require('./npm_cjs_chunk_range.cjs');
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.js
|
|
6
|
+
var require_min_version = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
7
|
+
const SemVer = require_semver$1.require_semver();
|
|
8
|
+
const Range = require_range$1.require_range();
|
|
9
|
+
const gt = require_range$1.require_gt();
|
|
10
|
+
const minVersion = (range, loose) => {
|
|
11
|
+
range = new Range(range, loose);
|
|
12
|
+
let minver = new SemVer("0.0.0");
|
|
13
|
+
if (range.test(minver)) return minver;
|
|
14
|
+
minver = new SemVer("0.0.0-0");
|
|
15
|
+
if (range.test(minver)) return minver;
|
|
16
|
+
minver = null;
|
|
17
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
18
|
+
const comparators = range.set[i];
|
|
19
|
+
let setMin = null;
|
|
20
|
+
comparators.forEach((comparator) => {
|
|
21
|
+
const compver = new SemVer(comparator.semver.version);
|
|
22
|
+
switch (comparator.operator) {
|
|
23
|
+
case ">":
|
|
24
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
25
|
+
else compver.prerelease.push(0);
|
|
26
|
+
compver.raw = compver.format();
|
|
27
|
+
case "":
|
|
28
|
+
case ">=":
|
|
29
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
30
|
+
break;
|
|
31
|
+
case "<":
|
|
32
|
+
case "<=": break;
|
|
33
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
37
|
+
}
|
|
38
|
+
if (minver && range.test(minver)) return minver;
|
|
39
|
+
return null;
|
|
40
|
+
};
|
|
41
|
+
module.exports = minVersion;
|
|
42
|
+
}));
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region dist/tsdown/_npm_entry_semver_ranges_min-version.cjs
|
|
46
|
+
module.exports = require_min_version();
|
|
47
|
+
|
|
48
|
+
//#endregion
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
const require_chunk = require('./npm_cjs_chunk_chunk.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/tree-kill@1.2.2/node_modules/tree-kill/index.js
|
|
4
|
+
var require_tree_kill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
5
|
+
var childProcess = require("child_process");
|
|
6
|
+
var spawn = childProcess.spawn;
|
|
7
|
+
var exec = childProcess.exec;
|
|
8
|
+
module.exports = function(pid, signal, callback) {
|
|
9
|
+
if (typeof signal === "function" && callback === void 0) {
|
|
10
|
+
callback = signal;
|
|
11
|
+
signal = void 0;
|
|
12
|
+
}
|
|
13
|
+
pid = parseInt(pid);
|
|
14
|
+
if (Number.isNaN(pid)) if (callback) return callback(/* @__PURE__ */ new Error("pid must be a number"));
|
|
15
|
+
else throw new Error("pid must be a number");
|
|
16
|
+
var tree = {};
|
|
17
|
+
var pidsToProcess = {};
|
|
18
|
+
tree[pid] = [];
|
|
19
|
+
pidsToProcess[pid] = 1;
|
|
20
|
+
switch (process.platform) {
|
|
21
|
+
case "win32":
|
|
22
|
+
exec("taskkill /pid " + pid + " /T /F", callback);
|
|
23
|
+
break;
|
|
24
|
+
case "darwin":
|
|
25
|
+
buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
|
|
26
|
+
return spawn("pgrep", ["-P", parentPid]);
|
|
27
|
+
}, function() {
|
|
28
|
+
killAll(tree, signal, callback);
|
|
29
|
+
});
|
|
30
|
+
break;
|
|
31
|
+
default:
|
|
32
|
+
buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
|
|
33
|
+
return spawn("ps", [
|
|
34
|
+
"-o",
|
|
35
|
+
"pid",
|
|
36
|
+
"--no-headers",
|
|
37
|
+
"--ppid",
|
|
38
|
+
parentPid
|
|
39
|
+
]);
|
|
40
|
+
}, function() {
|
|
41
|
+
killAll(tree, signal, callback);
|
|
42
|
+
});
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
function killAll(tree, signal, callback) {
|
|
47
|
+
var killed = {};
|
|
48
|
+
try {
|
|
49
|
+
Object.keys(tree).forEach(function(pid) {
|
|
50
|
+
tree[pid].forEach(function(pidpid) {
|
|
51
|
+
if (!killed[pidpid]) {
|
|
52
|
+
killPid(pidpid, signal);
|
|
53
|
+
killed[pidpid] = 1;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
if (!killed[pid]) {
|
|
57
|
+
killPid(pid, signal);
|
|
58
|
+
killed[pid] = 1;
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
} catch (err) {
|
|
62
|
+
if (callback) return callback(err);
|
|
63
|
+
else throw err;
|
|
64
|
+
}
|
|
65
|
+
if (callback) return callback();
|
|
66
|
+
}
|
|
67
|
+
function killPid(pid, signal) {
|
|
68
|
+
try {
|
|
69
|
+
process.kill(parseInt(pid, 10), signal);
|
|
70
|
+
} catch (err) {
|
|
71
|
+
if (err.code !== "ESRCH") throw err;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function buildProcessTree(parentPid, tree, pidsToProcess, spawnChildProcessesList, cb) {
|
|
75
|
+
var ps = spawnChildProcessesList(parentPid);
|
|
76
|
+
var allData = "";
|
|
77
|
+
ps.stdout.on("data", function(data) {
|
|
78
|
+
var data = data.toString("ascii");
|
|
79
|
+
allData += data;
|
|
80
|
+
});
|
|
81
|
+
var onClose = function(code) {
|
|
82
|
+
delete pidsToProcess[parentPid];
|
|
83
|
+
if (code != 0) {
|
|
84
|
+
if (Object.keys(pidsToProcess).length == 0) cb();
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
allData.match(/\d+/g).forEach(function(pid) {
|
|
88
|
+
pid = parseInt(pid, 10);
|
|
89
|
+
tree[parentPid].push(pid);
|
|
90
|
+
tree[pid] = [];
|
|
91
|
+
pidsToProcess[pid] = 1;
|
|
92
|
+
buildProcessTree(pid, tree, pidsToProcess, spawnChildProcessesList, cb);
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
ps.on("close", onClose);
|
|
96
|
+
}
|
|
97
|
+
}));
|
|
98
|
+
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region dist/tsdown/_npm_entry_tree-kill.cjs
|
|
101
|
+
module.exports = require_tree_kill();
|
|
102
|
+
|
|
103
|
+
//#endregion
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { t as createDebug } from "./node-Cb5OsnKg.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.22.1_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_d2e4a246ecba2d40b4415d1b79df8dc9/node_modules/rolldown-plugin-dts/dist/resolver-j7HY1N36.mjs
|
|
4
|
+
const __cjs_require = globalThis.process.getBuiltinModule("module").createRequire(import.meta.url);
|
|
5
|
+
const path = globalThis.process.getBuiltinModule("node:path");
|
|
6
|
+
const ts = __cjs_require("typescript");
|
|
7
|
+
const debug = createDebug("rolldown-plugin-dts:tsc-resolver");
|
|
8
|
+
function tscResolve(id, importer, cwd, tsconfig, tsconfigRaw, reference) {
|
|
9
|
+
const baseDir = tsconfig ? path.dirname(tsconfig) : cwd;
|
|
10
|
+
const parsedConfig = ts.parseJsonConfigFileContent(tsconfigRaw, ts.sys, baseDir);
|
|
11
|
+
const resolved = ts.bundlerModuleNameResolver(id, importer, {
|
|
12
|
+
moduleResolution: ts.ModuleResolutionKind.Bundler,
|
|
13
|
+
...parsedConfig.options
|
|
14
|
+
}, ts.sys, void 0, reference);
|
|
15
|
+
debug(`tsc resolving id "%s" from "%s" -> %O`, id, importer, resolved.resolvedModule);
|
|
16
|
+
return resolved.resolvedModule?.resolvedFileName;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { tscResolve };
|