@voidzero-dev/vite-plus-core 0.1.13-alpha.3 → 0.1.13-alpha.5
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/dist/esm-shims.js +9 -0
- package/dist/rolldown/cli.mjs +211 -73
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +8 -8
- package/dist/rolldown/experimental-index.d.mts +7 -7
- package/dist/rolldown/experimental-index.mjs +12 -13
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +3 -3
- package/dist/rolldown/index.mjs +9 -9
- package/dist/rolldown/parallel-plugin-worker.mjs +5 -5
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +2 -2
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +3 -3
- package/dist/rolldown/shared/{binding-BohGL_65.d.mts → binding-Dsq9Azhm.d.mts} +14 -17
- package/dist/rolldown/shared/{bindingify-input-options-D6u7COm1.mjs → bindingify-input-options-nddSVL89.mjs} +16 -11
- package/dist/rolldown/shared/{constructors-DNuo4d0H.d.mts → constructors-DfpIbfMG.d.mts} +7 -3
- package/dist/rolldown/shared/{constructors-Ctal_Rbv.mjs → constructors-DqC7XSXy.mjs} +8 -2
- package/dist/rolldown/shared/{define-config-cG45vHwf.d.mts → define-config-CV9D_Qea.d.mts} +19 -12
- package/dist/rolldown/shared/{error-CP8smW_P.mjs → error-BO4SlZV_.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-CjCoDD5h.mjs → load-config-CDqvxxnl.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-C5RWbu3O.mjs → normalize-string-or-regex-D7wlw16t.mjs} +1 -1
- package/dist/rolldown/shared/{parse-BhVn_3w_.mjs → parse-WOgXxW4-.mjs} +1 -1
- package/dist/rolldown/shared/{transform-BfdLLNnY.mjs → resolve-tsconfig-C3OzszY-.mjs} +28 -5
- package/dist/rolldown/shared/{rolldown-B7hI_r7G.mjs → rolldown-DUOYLKyH.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-CYoDea9V.mjs → rolldown-build-C7TjtSci.mjs} +4 -4
- package/dist/rolldown/shared/{transform-BoJxrM-e.d.mts → transform-B5D1aA1B.d.mts} +19 -2
- package/dist/rolldown/shared/{watch-CAj7leYN.mjs → watch-BV1BB_LU.mjs} +4 -4
- package/dist/rolldown/utils-index.d.mts +2 -2
- package/dist/rolldown/utils-index.mjs +4 -5
- package/dist/tsdown/{build-CoLhkNXE-DtR1EaBG.js → build-CoLhkNXE-DccPqXpK.js} +7 -7
- package/dist/tsdown/{build-dhDyu66J-DxSssGzc.js → build-dhDyu66J-C3xzaksU.js} +2 -2
- package/dist/tsdown/{debug-C4FmgzkJ-Co4tnxmE.js → debug-C4FmgzkJ-BxvFHEjv.js} +2 -2
- package/dist/tsdown/{detect-DN3DXXYt-BiiMP_XL.js → detect-DN3DXXYt-CgZGWZG7.js} +1 -1
- package/dist/tsdown/index-types.d.ts +6 -6
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/{main-JovZVvCY.js → main-CU_sednE.js} +2 -2
- package/dist/tsdown/run.js +3 -3
- package/dist/vite/client/client.mjs +12 -12
- package/dist/vite/client/env.mjs +1 -1
- package/dist/vite/node/chunks/build2.js +5 -14
- package/dist/vite/node/chunks/dist.js +6 -11
- package/dist/vite/node/chunks/dist2.js +1 -4
- package/dist/vite/node/chunks/logger.js +4 -4
- package/dist/vite/node/chunks/node.js +193 -178
- package/dist/vite/node/cli.js +1 -1
- package/dist/vite/node/index.d.ts +3 -3
- package/dist/vite/node/module-runner.js +18 -18
- package/package.json +7 -7
- /package/dist/rolldown/shared/{binding-C5G6_6ql.mjs → binding-BV_UWDF3.mjs} +0 -0
package/dist/vite/node/cli.js
CHANGED
|
@@ -622,7 +622,7 @@ var CAC = class extends EventTarget {
|
|
|
622
622
|
*/
|
|
623
623
|
const cac = (name = "") => new CAC(name);
|
|
624
624
|
//#endregion
|
|
625
|
-
//#region ../../
|
|
625
|
+
//#region ../../vite/packages/vite/src/node/cli.ts
|
|
626
626
|
var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
627
627
|
function checkNodeVersion(nodeVersion) {
|
|
628
628
|
const currentVersion = nodeVersion.split(".");
|
|
@@ -31,7 +31,7 @@ import { GeneralImportGlobOptions, ImportGlobFunction, ImportGlobOptions, KnownA
|
|
|
31
31
|
|
|
32
32
|
//#region \0rolldown/runtime.js
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region ../../../node_modules/.pnpm/@vitejs+devtools@0.
|
|
34
|
+
//#region ../../../node_modules/.pnpm/@vitejs+devtools@0.1.3_@pnpm+logger@1001.0.1_typescript@5.9.3_vite@packages+core_vue@3.5.27_typescript@5.9.3_/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
|
|
35
35
|
//#region src/node/cli-commands.d.ts
|
|
36
36
|
interface StartOptions {
|
|
37
37
|
root?: string;
|
|
@@ -41,7 +41,7 @@ interface StartOptions {
|
|
|
41
41
|
open?: boolean;
|
|
42
42
|
}
|
|
43
43
|
//#endregion
|
|
44
|
-
//#region ../../../node_modules/.pnpm/@vitejs+devtools@0.
|
|
44
|
+
//#region ../../../node_modules/.pnpm/@vitejs+devtools@0.1.3_@pnpm+logger@1001.0.1_typescript@5.9.3_vite@packages+core_vue@3.5.27_typescript@5.9.3_/node_modules/@vitejs/devtools/dist/config.d.ts
|
|
45
45
|
//#region src/node/config.d.ts
|
|
46
46
|
interface DevToolsConfig extends Partial<StartOptions> {
|
|
47
47
|
enabled: boolean;
|
|
@@ -3687,7 +3687,7 @@ declare class RunnableDevEnvironment extends DevEnvironment {
|
|
|
3687
3687
|
private _runnerOptions;
|
|
3688
3688
|
constructor(name: string, config: ResolvedConfig, context: RunnableDevEnvironmentContext);
|
|
3689
3689
|
get runner(): ModuleRunner;
|
|
3690
|
-
close(): Promise<void>;
|
|
3690
|
+
override close(): Promise<void>;
|
|
3691
3691
|
}
|
|
3692
3692
|
//#endregion
|
|
3693
3693
|
//#region src/node/server/environments/fetchableEnvironments.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
let SOURCEMAPPING_URL = "sourceMa";
|
|
2
2
|
SOURCEMAPPING_URL += "ppingURL";
|
|
3
3
|
//#endregion
|
|
4
|
-
//#region ../../
|
|
4
|
+
//#region ../../vite/packages/vite/src/shared/utils.ts
|
|
5
5
|
const isWindows = typeof process < "u" && process.platform === "win32";
|
|
6
6
|
/**
|
|
7
7
|
* Undo {@link wrapId}'s `/@id/` and null byte replacements.
|
|
@@ -223,7 +223,7 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
|
|
|
223
223
|
return found ? index = (bias === -1 ? upperBound : lowerBound)(segments, column, index) : bias === -1 && index++, index === -1 || index === segments.length ? -1 : index;
|
|
224
224
|
}
|
|
225
225
|
//#endregion
|
|
226
|
-
//#region ../../
|
|
226
|
+
//#region ../../vite/packages/vite/src/module-runner/sourcemap/decoder.ts
|
|
227
227
|
var DecodedMap = class {
|
|
228
228
|
_encoded;
|
|
229
229
|
_decoded;
|
|
@@ -253,7 +253,7 @@ function getOriginalPosition(map, needle) {
|
|
|
253
253
|
return result.column == null ? null : result;
|
|
254
254
|
}
|
|
255
255
|
//#endregion
|
|
256
|
-
//#region ../../
|
|
256
|
+
//#region ../../vite/packages/vite/src/module-runner/evaluatedModules.ts
|
|
257
257
|
const MODULE_RUNNER_SOURCEMAPPING_REGEXP = RegExp(`//# ${SOURCEMAPPING_URL}=data:application/json;base64,(.+)`);
|
|
258
258
|
var EvaluatedModuleNode = class {
|
|
259
259
|
importers = /* @__PURE__ */ new Set();
|
|
@@ -347,7 +347,7 @@ function normalizeModuleId(file) {
|
|
|
347
347
|
return prefixedBuiltins.has(file) ? file : slash(file).replace(/^\/@fs\//, isWindows ? "" : "/").replace(/^node:/, "").replace(/^\/+/, "/").replace(/^file:\/+/, isWindows ? "" : "/");
|
|
348
348
|
}
|
|
349
349
|
//#endregion
|
|
350
|
-
//#region ../../
|
|
350
|
+
//#region ../../vite/packages/vite/src/shared/hmr.ts
|
|
351
351
|
var HMRContext = class {
|
|
352
352
|
newListeners;
|
|
353
353
|
constructor(hmrClient, ownerPath) {
|
|
@@ -504,7 +504,7 @@ var HMRContext = class {
|
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
//#endregion
|
|
507
|
-
//#region ../../
|
|
507
|
+
//#region ../../vite/packages/vite/src/shared/ssrTransform.ts
|
|
508
508
|
/**
|
|
509
509
|
* Vite converts `import { } from 'foo'` to `const _ = __vite_ssr_import__('foo')`.
|
|
510
510
|
* Top-level imports and dynamic imports work slightly differently in Node.js.
|
|
@@ -515,7 +515,7 @@ function analyzeImportedModDifference(mod, rawId, moduleType, metadata) {
|
|
|
515
515
|
let missingBindings = metadata.importedNames.filter((s) => !(s in mod));
|
|
516
516
|
if (missingBindings.length) {
|
|
517
517
|
let lastBinding = missingBindings[missingBindings.length - 1];
|
|
518
|
-
throw moduleType === "module" ?
|
|
518
|
+
throw SyntaxError(moduleType === "module" ? `[vite] The requested module '${rawId}' does not provide an export named '${lastBinding}'` : `\
|
|
519
519
|
[vite] Named export '${lastBinding}' not found. The requested module '${rawId}' is a CommonJS module, which may not support all module.exports as named exports.
|
|
520
520
|
CommonJS modules can always be imported via the default export, for example using:
|
|
521
521
|
|
|
@@ -526,14 +526,14 @@ const {${missingBindings.join(", ")}} = pkg;
|
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
//#endregion
|
|
529
|
-
//#region ../../node_modules/.pnpm/nanoid@5.1.
|
|
529
|
+
//#region ../../node_modules/.pnpm/nanoid@5.1.7/node_modules/nanoid/non-secure/index.js
|
|
530
530
|
let nanoid = (size = 21) => {
|
|
531
531
|
let id = "", i = size | 0;
|
|
532
532
|
for (; i--;) id += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[Math.random() * 64 | 0];
|
|
533
533
|
return id;
|
|
534
534
|
};
|
|
535
535
|
//#endregion
|
|
536
|
-
//#region ../../
|
|
536
|
+
//#region ../../vite/packages/vite/src/shared/moduleRunnerTransport.ts
|
|
537
537
|
function reviveInvokeError(e) {
|
|
538
538
|
let error = Error(e.message || "Unknown invoke error");
|
|
539
539
|
return Object.assign(error, e, { runnerError: /* @__PURE__ */ Error("RunnerError") }), error;
|
|
@@ -687,13 +687,13 @@ const createInvokeableTransport = (transport) => {
|
|
|
687
687
|
};
|
|
688
688
|
};
|
|
689
689
|
//#endregion
|
|
690
|
-
//#region ../../
|
|
690
|
+
//#region ../../vite/packages/vite/src/shared/builtin.ts
|
|
691
691
|
function createIsBuiltin(builtins) {
|
|
692
692
|
let plainBuiltinsSet = new Set(builtins.filter((builtin) => typeof builtin == "string")), regexBuiltins = builtins.filter((builtin) => typeof builtin != "string");
|
|
693
693
|
return (id) => plainBuiltinsSet.has(id) || regexBuiltins.some((regexp) => regexp.test(id));
|
|
694
694
|
}
|
|
695
695
|
//#endregion
|
|
696
|
-
//#region ../../
|
|
696
|
+
//#region ../../vite/packages/vite/src/module-runner/constants.ts
|
|
697
697
|
const ssrModuleExportsKey = "__vite_ssr_exports__", ssrImportKey = "__vite_ssr_import__", ssrDynamicImportKey = "__vite_ssr_dynamic_import__", ssrExportAllKey = "__vite_ssr_exportAll__", ssrExportNameKey = "__vite_ssr_exportName__", ssrImportMetaKey = "__vite_ssr_import_meta__", noop = () => {}, silentConsole = {
|
|
698
698
|
debug: noop,
|
|
699
699
|
error: noop
|
|
@@ -702,7 +702,7 @@ const ssrModuleExportsKey = "__vite_ssr_exports__", ssrImportKey = "__vite_ssr_i
|
|
|
702
702
|
error: (error) => console.log("[vite]", error)
|
|
703
703
|
};
|
|
704
704
|
//#endregion
|
|
705
|
-
//#region ../../
|
|
705
|
+
//#region ../../vite/packages/vite/src/shared/hmrHandler.ts
|
|
706
706
|
function createHMRHandler(handler) {
|
|
707
707
|
let queue = new Queue();
|
|
708
708
|
return (payload) => queue.enqueue(() => handler(payload));
|
|
@@ -728,7 +728,7 @@ var Queue = class {
|
|
|
728
728
|
}
|
|
729
729
|
};
|
|
730
730
|
//#endregion
|
|
731
|
-
//#region ../../
|
|
731
|
+
//#region ../../vite/packages/vite/src/module-runner/hmrHandler.ts
|
|
732
732
|
function createHMRHandlerForRunner(runner) {
|
|
733
733
|
return createHMRHandler(async (payload) => {
|
|
734
734
|
let hmrClient = runner.hmrClient;
|
|
@@ -794,7 +794,7 @@ function findAllEntrypoints(runner, entrypoints = /* @__PURE__ */ new Set()) {
|
|
|
794
794
|
return entrypoints;
|
|
795
795
|
}
|
|
796
796
|
//#endregion
|
|
797
|
-
//#region ../../
|
|
797
|
+
//#region ../../vite/packages/vite/src/module-runner/sourcemap/interceptor.ts
|
|
798
798
|
const sourceMapCache = {}, fileContentsCache = {}, evaluatedModulesCache = /* @__PURE__ */ new Set(), retrieveFileHandlers = /* @__PURE__ */ new Set(), retrieveSourceMapHandlers = /* @__PURE__ */ new Set(), createExecHandlers = (handlers) => ((...args) => {
|
|
799
799
|
for (let handler of handlers) {
|
|
800
800
|
let result = handler(...args);
|
|
@@ -970,7 +970,7 @@ function prepareStackTrace(error, stack) {
|
|
|
970
970
|
return state.curPosition = state.nextPosition = null, errorString + processedStack.reverse().join("");
|
|
971
971
|
}
|
|
972
972
|
//#endregion
|
|
973
|
-
//#region ../../
|
|
973
|
+
//#region ../../vite/packages/vite/src/module-runner/sourcemap/index.ts
|
|
974
974
|
function enableSourceMapSupport(runner) {
|
|
975
975
|
if (runner.options.sourcemapInterceptor === "node") {
|
|
976
976
|
if (typeof process > "u") throw TypeError("Cannot use \"sourcemapInterceptor: 'node'\" because global \"process\" variable is not available.");
|
|
@@ -981,7 +981,7 @@ function enableSourceMapSupport(runner) {
|
|
|
981
981
|
return interceptStackTrace(runner, typeof runner.options.sourcemapInterceptor == "object" ? runner.options.sourcemapInterceptor : void 0);
|
|
982
982
|
}
|
|
983
983
|
//#endregion
|
|
984
|
-
//#region ../../
|
|
984
|
+
//#region ../../vite/packages/vite/src/module-runner/esmEvaluator.ts
|
|
985
985
|
var ESModulesEvaluator = class {
|
|
986
986
|
startOffset = getAsyncFunctionDeclarationPaddingLineCount();
|
|
987
987
|
async runInlinedModule(context, code) {
|
|
@@ -992,7 +992,7 @@ var ESModulesEvaluator = class {
|
|
|
992
992
|
}
|
|
993
993
|
};
|
|
994
994
|
//#endregion
|
|
995
|
-
//#region ../../
|
|
995
|
+
//#region ../../vite/packages/vite/src/module-runner/importMetaResolver.ts
|
|
996
996
|
const customizationHookNamespace = "vite-module-runner:import-meta-resolve/v1/", customizationHooksModule = `
|
|
997
997
|
|
|
998
998
|
export async function resolve(specifier, context, nextResolve) {
|
|
@@ -1041,7 +1041,7 @@ function importMetaResolveWithCustomHook(specifier, importer) {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
`${customizationHookNamespace}`;
|
|
1043
1043
|
//#endregion
|
|
1044
|
-
//#region ../../
|
|
1044
|
+
//#region ../../vite/packages/vite/src/module-runner/createImportMeta.ts
|
|
1045
1045
|
const envProxy = new Proxy({}, { get(_, p) {
|
|
1046
1046
|
throw Error(`[module runner] Dynamic access of "import.meta.env" is not supported. Please, use "import.meta.env.${String(p)}" instead.`);
|
|
1047
1047
|
} });
|
|
@@ -1074,7 +1074,7 @@ function createNodeImportMeta(modulePath) {
|
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
1076
|
//#endregion
|
|
1077
|
-
//#region ../../
|
|
1077
|
+
//#region ../../vite/packages/vite/src/module-runner/runner.ts
|
|
1078
1078
|
var ModuleRunner = class {
|
|
1079
1079
|
evaluatedModules;
|
|
1080
1080
|
hmrClient;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voidzero-dev/vite-plus-core",
|
|
3
|
-
"version": "0.1.13-alpha.
|
|
3
|
+
"version": "0.1.13-alpha.5",
|
|
4
4
|
"description": "The Unified Toolchain for the Web",
|
|
5
5
|
"homepage": "https://viteplus.dev/guide",
|
|
6
6
|
"bugs": {
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"@babel/types": "^7.28.5",
|
|
113
113
|
"@oxc-node/cli": "^0.0.35",
|
|
114
114
|
"@oxc-node/core": "^0.0.35",
|
|
115
|
-
"@vitejs/devtools": "^0.1.
|
|
115
|
+
"@vitejs/devtools": "^0.1.3",
|
|
116
116
|
"es-module-lexer": "^1.7.0",
|
|
117
117
|
"hookable": "^6.0.1",
|
|
118
118
|
"magic-string": "^0.30.21",
|
|
@@ -128,15 +128,15 @@
|
|
|
128
128
|
"tinyglobby": "^0.2.15",
|
|
129
129
|
"tree-kill": "^1.2.2",
|
|
130
130
|
"tsdown": "^0.21.4",
|
|
131
|
-
"rolldown": "1.0.0-rc.
|
|
132
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@0.1.13-alpha.
|
|
131
|
+
"rolldown": "1.0.0-rc.10",
|
|
132
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.1.13-alpha.5"
|
|
133
133
|
},
|
|
134
134
|
"peerDependencies": {
|
|
135
135
|
"@arethetypeswrong/core": "^0.18.1",
|
|
136
136
|
"@tsdown/css": "0.21.4",
|
|
137
137
|
"@tsdown/exe": "0.21.4",
|
|
138
138
|
"@types/node": "^20.19.0 || >=22.12.0",
|
|
139
|
-
"@vitejs/devtools": "^0.
|
|
139
|
+
"@vitejs/devtools": "^0.1.0",
|
|
140
140
|
"esbuild": "^0.27.0",
|
|
141
141
|
"jiti": ">=1.21.0",
|
|
142
142
|
"less": "^4.0.0",
|
|
@@ -214,8 +214,8 @@
|
|
|
214
214
|
"node": "^20.19.0 || >=22.12.0"
|
|
215
215
|
},
|
|
216
216
|
"bundledVersions": {
|
|
217
|
-
"vite": "8.0.
|
|
218
|
-
"rolldown": "1.0.0-rc.
|
|
217
|
+
"vite": "8.0.1",
|
|
218
|
+
"rolldown": "1.0.0-rc.10",
|
|
219
219
|
"tsdown": "0.21.4"
|
|
220
220
|
},
|
|
221
221
|
"scripts": {
|
|
File without changes
|