@voidzero-dev/vite-plus-core 0.1.2 → 0.1.3
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/rolldown/cli.mjs +11 -22
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +10 -11
- package/dist/rolldown/experimental-index.d.mts +20 -6
- package/dist/rolldown/experimental-index.mjs +24 -22
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/filter-index.mjs +2 -8
- package/dist/rolldown/get-log-filter.mjs +1 -2
- package/dist/rolldown/index.d.mts +3 -3
- package/dist/rolldown/index.mjs +10 -13
- package/dist/rolldown/parallel-plugin-worker.mjs +7 -9
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parallel-plugin.mjs +1 -2
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +4 -6
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +4 -6
- package/dist/rolldown/shared/{binding-C4ZlFAt6.d.mts → binding-BohGL_65.d.mts} +10 -5
- package/dist/rolldown/shared/{binding-Bd04_f8P.mjs → binding-COZdHtee.mjs} +7 -16
- package/dist/rolldown/shared/{bindingify-input-options-ffqkmT9z.mjs → bindingify-input-options-DdW_FOGG.mjs} +33 -56
- package/dist/rolldown/shared/{constructors-C5a55nbY.mjs → constructors-CQlws1EK.mjs} +2 -4
- package/dist/rolldown/shared/{constructors-cPsD1J5w.d.mts → constructors-ColrbLxz.d.mts} +2 -2
- package/dist/rolldown/shared/{define-config-DX_4SBzo.d.mts → define-config-BqZZMLjO.d.mts} +66 -30
- package/dist/rolldown/shared/{define-config-BMj_QknW.mjs → define-config-DJOr6Iwt.mjs} +1 -2
- package/dist/rolldown/shared/{error-BYPsvVEN.mjs → error-FTNambir.mjs} +3 -8
- package/dist/rolldown/shared/{load-config-Oj1-3DPg.mjs → load-config-DBRCgd9m.mjs} +2 -4
- package/dist/rolldown/shared/{logs-CCc_0vhs.mjs → logs-D80CXhvg.mjs} +5 -8
- package/dist/rolldown/shared/{misc-Xty885dB.mjs → misc-DJYbNKZX.mjs} +1 -2
- package/dist/rolldown/shared/{normalize-string-or-regex-DoNa0azR.mjs → normalize-string-or-regex-CJTjKt5t.mjs} +3 -6
- package/dist/rolldown/shared/{parse-Wj8OTS4w.mjs → parse-q7gzDQmi.mjs} +2 -5
- package/dist/rolldown/shared/{prompt-CmNr0AI-.mjs → prompt-DZIXsnf9.mjs} +1 -3
- package/dist/rolldown/shared/{rolldown-y9H0nYAD.mjs → rolldown-BJMdRJb1.mjs} +2 -4
- package/dist/rolldown/shared/{rolldown-build-DkOWV5Vu.mjs → rolldown-build-DKv2K096.mjs} +424 -473
- package/dist/rolldown/shared/{transform-DoG7c5_r.d.mts → transform-BoJxrM-e.d.mts} +1 -1
- package/dist/rolldown/shared/{transform-D55YcCvB.mjs → transform-CQppMqL8.mjs} +3 -6
- package/dist/rolldown/shared/{watch-CVufTfok.mjs → watch-BeMWbIuq.mjs} +71 -77
- package/dist/rolldown/utils-index.d.mts +2 -2
- package/dist/rolldown/utils-index.mjs +9 -18
- package/dist/tsdown/{build-TmLngPCw-I7MHSf0I.js → build-TmLngPCw-CBoVPzkZ.js} +57 -150
- package/dist/tsdown/build-gOkJM1H9-D9ngUBpk.js +5 -0
- package/dist/tsdown/{chunk-CdeBBKNj.js → chunk-CSNpwdVU.js} +13 -23
- package/dist/tsdown/{debug-tOJ_PtrM-DITcI9An.js → debug-tOJ_PtrM-C-Do1Twv.js} +4 -6
- package/dist/tsdown/{detect-DK-FDZQ9-CALXiuJa.js → detect-DK-FDZQ9-CHuRhyUG.js} +2 -4
- package/dist/tsdown/{dist-DVPyDO-_.js → dist-Ba2DZx1w.js} +3 -6
- package/dist/tsdown/{dist-uzMTIu3J.js → dist-DCol2bGA.js} +24 -56
- package/dist/tsdown/{dist-kuoe97DJ.js → dist-_l70jCqI.js} +1 -2
- package/dist/tsdown/{filename-C2azOotK.js → filename-BDcjeHGl.js} +1 -3
- package/dist/tsdown/{index-node-Djp92Gzb-fgHTblzo.js → index-node-Djp92Gzb-B-AUHI4t.js} +2 -4
- package/dist/tsdown/index-types.d.ts +8 -7
- package/dist/tsdown/index.js +7 -9
- package/dist/tsdown/{main-BWoReXjl.js → main-DYgM-9Cb.js} +7 -22
- package/dist/tsdown/{node-Ba_UB_xO.js → node-B3Gdtau1.js} +1 -4
- package/dist/tsdown/npm_cjs_chunk_chunk.cjs +6 -8
- package/dist/tsdown/npm_cjs_chunk_lt.cjs +13 -16
- package/dist/tsdown/npm_cjs_chunk_range.cjs +16 -28
- package/dist/tsdown/npm_cjs_chunk_semver.cjs +40 -52
- package/dist/tsdown/npm_entry_picomatch.cjs +18 -30
- package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +3 -7
- package/dist/tsdown/npm_entry_semver_functions_lt.cjs +3 -5
- package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +5 -8
- package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +5 -8
- package/dist/tsdown/npm_entry_tree-kill.cjs +2 -6
- package/dist/tsdown/{resolver-CdD-yT15-OWjlgV0D.js → resolver-CdD-yT15-3eaymYLw.js} +2 -4
- package/dist/tsdown/run.js +6 -12
- package/dist/tsdown/{tsc-D6YfZJBZ.js → tsc-CberiTDq.js} +4 -6
- package/dist/tsdown/{tsc-context-CGmk4Cps.js → tsc-context-DiIjfXAG.js} +2 -4
- package/dist/vite/client/client.mjs +4 -19
- package/dist/vite/client/env.mjs +1 -2
- package/dist/vite/node/chunks/build.js +2 -3
- package/dist/vite/node/chunks/build2.js +91 -243
- package/dist/vite/node/chunks/chunk.js +7 -13
- package/dist/vite/node/chunks/config.js +2 -3
- package/dist/vite/node/chunks/dist.js +27 -61
- package/dist/vite/node/chunks/dist2.js +11 -95
- package/dist/vite/node/chunks/lib.js +1 -7
- package/dist/vite/node/chunks/logger.js +3 -8
- package/dist/vite/node/chunks/node.js +137 -428
- package/dist/vite/node/chunks/optimizer.js +2 -3
- package/dist/vite/node/chunks/postcss-import.js +1 -13
- package/dist/vite/node/chunks/preview.js +2 -3
- package/dist/vite/node/chunks/server.js +2 -3
- package/dist/vite/node/cli.js +1 -4
- package/dist/vite/node/index.d.ts +2 -2
- package/dist/vite/node/index.js +1 -2
- package/dist/vite/node/internal.js +1 -2
- package/dist/vite/node/module-runner.js +44 -3
- package/package.json +5 -5
- package/dist/rolldown/cli-setup.d.mts +0 -1
- package/dist/rolldown/cli-setup.mjs +0 -17
- package/dist/tsdown/build-gOkJM1H9-BRI3DQle.js +0 -6
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { t as rolldown } from "./rolldown-
|
|
1
|
+
import { t as rolldown } from "./rolldown-BJMdRJb1.mjs";
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { readdir } from "node:fs/promises";
|
|
5
5
|
import { cwd } from "node:process";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
|
7
|
-
|
|
8
7
|
//#region src/utils/load-config.ts
|
|
9
8
|
async function bundleTsConfig(configFile, isEsm) {
|
|
10
9
|
const dirnameVarName = "injected_original_dirname";
|
|
@@ -117,6 +116,5 @@ async function loadConfig(configPath) {
|
|
|
117
116
|
throw new Error("Error happened while loading config.", { cause: err });
|
|
118
117
|
}
|
|
119
118
|
}
|
|
120
|
-
|
|
121
119
|
//#endregion
|
|
122
|
-
export { loadConfig as t };
|
|
120
|
+
export { loadConfig as t };
|
|
@@ -35,7 +35,6 @@ function getCodeFrame(source, line, column) {
|
|
|
35
35
|
return `${lineNumber}: ${displayedLine}`;
|
|
36
36
|
}).join("\n");
|
|
37
37
|
}
|
|
38
|
-
|
|
39
38
|
//#endregion
|
|
40
39
|
//#region src/log/locate-character/index.js
|
|
41
40
|
/** @typedef {import('./types').Location} Location */
|
|
@@ -96,10 +95,9 @@ function getLocator(source, options = {}) {
|
|
|
96
95
|
function locate(source, search, options) {
|
|
97
96
|
return getLocator(source, options)(search, options && options.startIndex);
|
|
98
97
|
}
|
|
99
|
-
|
|
100
98
|
//#endregion
|
|
101
99
|
//#region src/log/logs.ts
|
|
102
|
-
const INVALID_LOG_POSITION = "INVALID_LOG_POSITION", PLUGIN_ERROR = "PLUGIN_ERROR", INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN", CYCLE_LOADING = "CYCLE_LOADING",
|
|
100
|
+
const INVALID_LOG_POSITION = "INVALID_LOG_POSITION", PLUGIN_ERROR = "PLUGIN_ERROR", INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN", CYCLE_LOADING = "CYCLE_LOADING", MULTIPLE_WATCHER_OPTION = "MULTIPLE_WATCHER_OPTION", PARSE_ERROR = "PARSE_ERROR";
|
|
103
101
|
function logParseError(message, id, pos) {
|
|
104
102
|
return {
|
|
105
103
|
code: PARSE_ERROR,
|
|
@@ -126,10 +124,10 @@ function logCycleLoading(pluginName, moduleId) {
|
|
|
126
124
|
message: `Found the module "${moduleId}" cycle loading at ${pluginName} plugin, it maybe blocking fetching modules.`
|
|
127
125
|
};
|
|
128
126
|
}
|
|
129
|
-
function
|
|
127
|
+
function logMultipleWatcherOption() {
|
|
130
128
|
return {
|
|
131
|
-
code:
|
|
132
|
-
message: `Found
|
|
129
|
+
code: MULTIPLE_WATCHER_OPTION,
|
|
130
|
+
message: `Found multiple watcher options at watch options, using first one to start watcher.`
|
|
133
131
|
};
|
|
134
132
|
}
|
|
135
133
|
function logPluginError(error, plugin, { hook, id } = {}) {
|
|
@@ -178,6 +176,5 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
178
176
|
properties.frame = getCodeFrame(source, line, column);
|
|
179
177
|
}
|
|
180
178
|
}
|
|
181
|
-
|
|
182
179
|
//#endregion
|
|
183
|
-
export { logInvalidLogPosition as a, logPluginError as c, logInputHookInOutputPlugin as i, locate as l, error as n,
|
|
180
|
+
export { logInvalidLogPosition as a, logPluginError as c, logInputHookInOutputPlugin as i, locate as l, error as n, logMultipleWatcherOption as o, logCycleLoading as r, logParseError as s, augmentCodeLocation as t, getCodeFrame as u };
|
|
@@ -17,6 +17,5 @@ function unsupported(info) {
|
|
|
17
17
|
throw new Error(`UNSUPPORTED: ${info}`);
|
|
18
18
|
}
|
|
19
19
|
function noop(..._args) {}
|
|
20
|
-
|
|
21
20
|
//#endregion
|
|
22
|
-
export { unreachable as a, unimplemented as i, isPromiseLike as n, unsupported as o, noop as r, arraify as t };
|
|
21
|
+
export { unreachable as a, unimplemented as i, isPromiseLike as n, unsupported as o, noop as r, arraify as t };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { c as logPluginError, n as error } from "./logs-
|
|
3
|
-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-COZdHtee.mjs";
|
|
2
|
+
import { c as logPluginError, n as error } from "./logs-D80CXhvg.mjs";
|
|
4
3
|
//#region src/builtin-plugin/utils.ts
|
|
5
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
6
5
|
var BuiltinPlugin = class {
|
|
@@ -45,7 +44,6 @@ function bindingifyManifestPlugin(plugin, pluginContextData) {
|
|
|
45
44
|
}
|
|
46
45
|
};
|
|
47
46
|
}
|
|
48
|
-
|
|
49
47
|
//#endregion
|
|
50
48
|
//#region src/utils/normalize-string-or-regex.ts
|
|
51
49
|
function normalizedStringOrRegex(pattern) {
|
|
@@ -56,6 +54,5 @@ function normalizedStringOrRegex(pattern) {
|
|
|
56
54
|
function isReadonlyArray(input) {
|
|
57
55
|
return Array.isArray(input);
|
|
58
56
|
}
|
|
59
|
-
|
|
60
57
|
//#endregion
|
|
61
|
-
export { makeBuiltinPluginCallable as a, bindingifyManifestPlugin as i, BuiltinPlugin as n, bindingifyBuiltInPlugin as r, normalizedStringOrRegex as t };
|
|
58
|
+
export { makeBuiltinPluginCallable as a, bindingifyManifestPlugin as i, BuiltinPlugin as n, bindingifyBuiltInPlugin as r, normalizedStringOrRegex as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-COZdHtee.mjs";
|
|
3
2
|
//#region ../../../node_modules/.pnpm/oxc-parser@0.115.0/node_modules/oxc-parser/src-js/wrap.js
|
|
4
3
|
function wrap(result) {
|
|
5
4
|
let program, module, comments, errors;
|
|
@@ -35,7 +34,6 @@ function applyFix(program, fixPath) {
|
|
|
35
34
|
node.value = RegExp(node.regex.pattern, node.regex.flags);
|
|
36
35
|
} catch {}
|
|
37
36
|
}
|
|
38
|
-
|
|
39
37
|
//#endregion
|
|
40
38
|
//#region src/utils/parse.ts
|
|
41
39
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -72,6 +70,5 @@ async function parse(filename, sourceText, options) {
|
|
|
72
70
|
function parseSync(filename, sourceText, options) {
|
|
73
71
|
return wrap((0, import_binding.parseSync)(filename, sourceText, options));
|
|
74
72
|
}
|
|
75
|
-
|
|
76
73
|
//#endregion
|
|
77
|
-
export { parseSync as n, parse as t };
|
|
74
|
+
export { parseSync as n, parse as t };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import process$1, { stdin, stdout } from "node:process";
|
|
2
2
|
import { WriteStream } from "node:tty";
|
|
3
3
|
import f from "node:readline";
|
|
4
|
-
|
|
5
4
|
//#region ../../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/chunks/prompt.mjs
|
|
6
5
|
function getDefaultExportFromCjs(x) {
|
|
7
6
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -842,6 +841,5 @@ async function prompt(message, opts = {}) {
|
|
|
842
841
|
}).then(handleCancel);
|
|
843
842
|
throw new Error(`Unknown prompt type: ${opts.type}`);
|
|
844
843
|
}
|
|
845
|
-
|
|
846
844
|
//#endregion
|
|
847
|
-
export { prompt };
|
|
845
|
+
export { prompt };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-
|
|
2
|
-
|
|
1
|
+
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-DKv2K096.mjs";
|
|
3
2
|
//#region src/api/rolldown/index.ts
|
|
4
3
|
/**
|
|
5
4
|
* The API compatible with Rollup's `rollup` function.
|
|
@@ -37,6 +36,5 @@ const rolldown = async (input) => {
|
|
|
37
36
|
validateOption("input", input);
|
|
38
37
|
return new RolldownBuild(await PluginDriver.callOptionsHook(input));
|
|
39
38
|
};
|
|
40
|
-
|
|
41
39
|
//#endregion
|
|
42
|
-
export { rolldown as t };
|
|
40
|
+
export { rolldown as t };
|