@voidzero-dev/vite-plus-core 0.2.8 → 0.3.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 +30 -1
- package/dist/rolldown/cli.mjs +14 -10
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-index.d.mts +5 -5
- package/dist/rolldown/experimental-index.mjs +11 -9
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +2 -2
- 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.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +1 -1
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{binding-CVtkJvyl.d.mts → binding-Bvw14S3g.d.mts} +70 -1
- package/dist/rolldown/shared/binding-C__LJDBG.mjs +675 -0
- package/dist/rolldown/shared/{bindingify-input-options-B03y7DfJ.mjs → bindingify-input-options-V9YvAjrr.mjs} +6 -10
- package/dist/rolldown/shared/{constructors-ALilxAii.d.mts → constructors-CRumnw21.d.mts} +2 -2
- package/dist/rolldown/shared/{constructors-COwFYQna.mjs → constructors-DklcHr18.mjs} +1 -1
- package/dist/rolldown/shared/{create-bundler-option-B-tSTZRt.mjs → create-bundler-option-DbV2ud0B.mjs} +5 -4
- package/dist/rolldown/shared/{define-config-DSMNXceb.d.mts → define-config-DwTNhgWB.d.mts} +12 -10
- package/dist/rolldown/shared/{error-nLggAzpQ.mjs → error-NcRuXAVN.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-O4G7NVNA.mjs → load-config-Dd7jKGUy.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-Cj-DgIV1.mjs → normalize-string-or-regex-CFtim40S.mjs} +1 -1
- package/dist/rolldown/shared/{parse-CQfUbVuN.mjs → parse-rvxTD36n.mjs} +2 -2
- package/dist/rolldown/shared/{resolve-tsconfig-CE3HNSOK.mjs → resolve-tsconfig-D2vSIIkR.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-qV_fUwyM.mjs → rolldown-Bblizyw1.mjs} +4 -4
- package/dist/rolldown/shared/{transform-WmU_cI8e.d.mts → transform--WSMLt1x.d.mts} +1 -1
- package/dist/rolldown/shared/{watch-BNIsji74.mjs → watch-DPvOlccK.mjs} +5 -5
- package/dist/rolldown/utils-index.d.mts +3 -3
- package/dist/rolldown/utils-index.mjs +15 -13
- package/dist/tsdown/{build-D_enfyvD-X5SFXZZc.js → build-D_enfyvD-tOzhITac.js} +1076 -20
- package/dist/tsdown/{debug-CKcBYQLP-avlAPNcV.js → debug-CKcBYQLP-By_AQqN8.js} +3 -3
- package/dist/tsdown/{detect-DGhJGEqb-CGd2brAW.js → detect-DGhJGEqb-LL52mV6u.js} +1 -1
- package/dist/tsdown/{dist-BZO8q3c0.js → dist-BsS7BOcb.js} +5 -5
- package/dist/tsdown/index-types.d.ts +4 -4
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/internal-DSmmwu4u.js +3 -0
- package/dist/tsdown/{main-Jz_9T-KA.js → main-Bcv7jU2b.js} +210 -196
- package/dist/tsdown/npm_entry_picomatch.cjs +10 -6
- package/dist/tsdown/npm_entry_tree-kill.cjs +4 -2
- package/dist/tsdown/{resolver-cwLsPb2o-BqQjnCbF.js → resolver-cwLsPb2o-Bb9SDBm6.js} +2 -2
- package/dist/tsdown/run.js +6 -6
- package/dist/tsdown/{src-D5keKqGd.js → src-JVSpR8xt.js} +5 -5
- package/dist/tsdown/{target-Bab3CUeB-CERZYTwS.js → target-Bab3CUeB-8PBzMh3p.js} +5 -5
- package/dist/tsdown/{tsc-DmzrnJwy.js → tsc-B8FD48Oc.js} +3 -3
- package/dist/tsdown/tsdown-css.js +5 -5
- package/dist/tsdown/tsdown-exe.js +4 -4
- package/dist/vite/client/bundledDevClient.mjs +393 -27
- package/dist/vite/client/client.mjs +20 -14
- package/dist/vite/node/chunks/build.js +70 -64
- package/dist/vite/node/chunks/dist.js +36 -29
- package/dist/vite/node/chunks/dist2.js +193 -149
- package/dist/vite/node/chunks/node.js +1047 -875
- package/dist/vite/node/chunks/postcss-import.js +23 -25
- package/dist/vite/node/index.d.ts +63 -58
- package/dist/vite/node/module-runner.d.ts +13 -13
- package/dist/vite/node/module-runner.js +24 -19
- package/package.json +32 -26
- package/dist/rolldown/shared/binding-DwUQWZOo.mjs +0 -662
- package/dist/tsdown/dist-CMKwGGNp.js +0 -1059
- package/dist/tsdown/internal-DyaNxVWW.js +0 -3
package/LICENSE
CHANGED
|
@@ -1490,6 +1490,35 @@ Repository: https://github.com/isaacs/node-which
|
|
|
1490
1490
|
|
|
1491
1491
|
---------------------------------------
|
|
1492
1492
|
|
|
1493
|
+
## js-tokens
|
|
1494
|
+
License: MIT
|
|
1495
|
+
By: Simon Lydell
|
|
1496
|
+
Repository: https://github.com/lydell/js-tokens
|
|
1497
|
+
|
|
1498
|
+
> The MIT License (MIT)
|
|
1499
|
+
>
|
|
1500
|
+
> Copyright (c) 2014, 2015, 2016, 2017, 2018 Simon Lydell
|
|
1501
|
+
>
|
|
1502
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1503
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
1504
|
+
> in the Software without restriction, including without limitation the rights
|
|
1505
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1506
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
1507
|
+
> furnished to do so, subject to the following conditions:
|
|
1508
|
+
>
|
|
1509
|
+
> The above copyright notice and this permission notice shall be included in
|
|
1510
|
+
> all copies or substantial portions of the Software.
|
|
1511
|
+
>
|
|
1512
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1513
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1514
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1515
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1516
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1517
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1518
|
+
> THE SOFTWARE.
|
|
1519
|
+
|
|
1520
|
+
---------------------------------------
|
|
1521
|
+
|
|
1493
1522
|
## launch-editor, launch-editor-middleware
|
|
1494
1523
|
License: MIT
|
|
1495
1524
|
By: Evan You
|
|
@@ -4171,7 +4200,7 @@ Repository: https://github.com/vitejs/vite
|
|
|
4171
4200
|
>
|
|
4172
4201
|
> > The MIT License (MIT)
|
|
4173
4202
|
> >
|
|
4174
|
-
> > Copyright (c) 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 Simon Lydell
|
|
4203
|
+
> > Copyright (c) 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025 Simon Lydell
|
|
4175
4204
|
> >
|
|
4176
4205
|
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4177
4206
|
> > of this software and associated documentation files (the "Software"), to deal
|
package/dist/rolldown/cli.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import { D as version, E as description } from "./shared/bindingify-input-options-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-DPvOlccK.mjs";
|
|
2
|
+
import { D as version, E as description } from "./shared/bindingify-input-options-V9YvAjrr.mjs";
|
|
3
3
|
import { t as arraify } from "./shared/misc-DOSKtd97.mjs";
|
|
4
|
-
import { a as getOutputCliKeys, c as styleText, i as getInputCliKeys, n as logger, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/create-bundler-option-
|
|
5
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
6
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
4
|
+
import { a as getOutputCliKeys, c as styleText, i as getInputCliKeys, n as logger, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/create-bundler-option-DbV2ud0B.mjs";
|
|
5
|
+
import { t as rolldown } from "./shared/rolldown-Bblizyw1.mjs";
|
|
6
|
+
import { t as loadConfig } from "./shared/load-config-Dd7jKGUy.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import g$1 from "node:process";
|
|
9
9
|
import { performance } from "node:perf_hooks";
|
|
@@ -719,8 +719,10 @@ function normalizeCliOptions(cliOptions, positionals) {
|
|
|
719
719
|
process.exit(1);
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
|
-
if (!result.config && positionals.length > 0)
|
|
723
|
-
|
|
722
|
+
if (!result.config && positionals.length > 0) {
|
|
723
|
+
if (Array.isArray(result.input.input)) result.input.input.push(...positionals);
|
|
724
|
+
else result.input.input = positionals;
|
|
725
|
+
}
|
|
724
726
|
return result;
|
|
725
727
|
}
|
|
726
728
|
//#endregion
|
|
@@ -769,8 +771,10 @@ function parseCliArguments() {
|
|
|
769
771
|
if (config?.abbreviation) rawName += `-${config.abbreviation}, `;
|
|
770
772
|
if (config?.reverse) rawName += `--no-${key}`;
|
|
771
773
|
else rawName += `--${key}`;
|
|
772
|
-
if (info.type !== "boolean" && !config?.reverse)
|
|
773
|
-
|
|
774
|
+
if (info.type !== "boolean" && !config?.reverse) {
|
|
775
|
+
if (config?.requireValue) rawName += ` <${config?.hint ?? key}>`;
|
|
776
|
+
else rawName += ` [${config?.hint ?? key}]`;
|
|
777
|
+
}
|
|
774
778
|
cli.option(rawName, info.description ?? config?.description ?? "");
|
|
775
779
|
}
|
|
776
780
|
let parsedInput = [];
|
|
@@ -862,7 +866,7 @@ function getClearScreenFunction(options) {
|
|
|
862
866
|
};
|
|
863
867
|
}
|
|
864
868
|
//#endregion
|
|
865
|
-
//#region \0@oxc-project+runtime@0.
|
|
869
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/usingCtx.js
|
|
866
870
|
function _usingCtx() {
|
|
867
871
|
var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
|
|
868
872
|
var n = Error();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-
|
|
1
|
+
import { R as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-DwTNhgWB.mjs";
|
|
2
2
|
//#region src/utils/load-config.d.ts
|
|
3
3
|
type ConfigLoader = "bundle" | "native";
|
|
4
4
|
interface LoadConfigOptions {
|
package/dist/rolldown/config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as VERSION } from "./shared/bindingify-input-options-
|
|
1
|
+
import { T as VERSION } from "./shared/bindingify-input-options-V9YvAjrr.mjs";
|
|
2
2
|
import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
|
|
3
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
3
|
+
import { t as loadConfig } from "./shared/load-config-Dd7jKGUy.mjs";
|
|
4
4
|
export { VERSION, defineConfig, loadConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import { $ as defineParallelPlugin, Gt as StringOrRegExp, I as BuiltinPlugin, Qt as freeExternalMemory, Vt as OutputOptions, Xt as RolldownOutput, l as InputOptions, ut as NormalizedOutputOptions } from "./shared/define-config-
|
|
3
|
-
import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform
|
|
4
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-
|
|
1
|
+
import { A as BindingViteTransformPluginConfig, H as ResolveResult, J as isolatedDeclaration, N as IsolatedDeclarationsOptions, P as IsolatedDeclarationsResult, R as NapiResolveOptions, T as BindingViteManifestPluginConfig, U as ResolverFactory, X as moduleRunnerTransform, Y as isolatedDeclarationSync, Z as resetNativeMemoryStats, f as BindingNativeMemoryStats, i as BindingClientHmrUpdate, m as BindingRebuildStrategy, n as BindingBundleAnalyzerPluginConfig, q as getNativeMemoryStats, r as BindingBundleState, u as BindingLazyChunkOutput, v as BindingTsconfigCompilerOptions, y as BindingTsconfigRawOptions } from "./shared/binding-Bvw14S3g.mjs";
|
|
2
|
+
import { $ as defineParallelPlugin, Gt as StringOrRegExp, I as BuiltinPlugin, Qt as freeExternalMemory, Vt as OutputOptions, Xt as RolldownOutput, l as InputOptions, ut as NormalizedOutputOptions } from "./shared/define-config-DwTNhgWB.mjs";
|
|
3
|
+
import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform--WSMLt1x.mjs";
|
|
4
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-CRumnw21.mjs";
|
|
5
5
|
//#region src/api/dev/dev-options.d.ts
|
|
6
6
|
type DevOnHmrUpdates = (result: Error | {
|
|
7
7
|
updates: BindingClientHmrUpdate[];
|
|
@@ -292,4 +292,4 @@ type TsconfigRawOptions = BindingTsconfigRawOptions;
|
|
|
292
292
|
/** @deprecated Use from `rolldown/utils` instead. */
|
|
293
293
|
type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
|
|
294
294
|
//#endregion
|
|
295
|
-
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
|
|
295
|
+
export { type BindingClientHmrUpdate, type BindingNativeMemoryStats, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, getNativeMemoryStats, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resetNativeMemoryStats, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import { u as transformToRollupOutput } from "./shared/bindingify-input-options-
|
|
4
|
-
import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./shared/create-bundler-option-
|
|
5
|
-
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-
|
|
6
|
-
import { n as parseSync$1, t as parse$1 } from "./shared/parse-
|
|
7
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-
|
|
8
|
-
import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-C__LJDBG.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-CFtim40S.mjs";
|
|
3
|
+
import { u as transformToRollupOutput } from "./shared/bindingify-input-options-V9YvAjrr.mjs";
|
|
4
|
+
import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./shared/create-bundler-option-DbV2ud0B.mjs";
|
|
5
|
+
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-NcRuXAVN.mjs";
|
|
6
|
+
import { n as parseSync$1, t as parse$1 } from "./shared/parse-rvxTD36n.mjs";
|
|
7
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-DklcHr18.mjs";
|
|
8
|
+
import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-D2vSIIkR.mjs";
|
|
9
9
|
import { pathToFileURL } from "node:url";
|
|
10
10
|
//#region src/api/dev/dev-engine.ts
|
|
11
11
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -350,7 +350,9 @@ const TsconfigCache = TsconfigCache$1;
|
|
|
350
350
|
//#endregion
|
|
351
351
|
var BindingRebuildStrategy = import_binding.BindingRebuildStrategy;
|
|
352
352
|
var ResolverFactory = import_binding.ResolverFactory;
|
|
353
|
+
var getNativeMemoryStats = import_binding.getNativeMemoryStats;
|
|
353
354
|
var isolatedDeclaration = import_binding.isolatedDeclaration;
|
|
354
355
|
var isolatedDeclarationSync = import_binding.isolatedDeclarationSync;
|
|
355
356
|
var moduleRunnerTransform = import_binding.moduleRunnerTransform;
|
|
356
|
-
|
|
357
|
+
var resetNativeMemoryStats = import_binding.resetNativeMemoryStats;
|
|
358
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, getNativeMemoryStats, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resetNativeMemoryStats, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as withFilter } from "./shared/define-config-
|
|
1
|
+
import { F as withFilter } from "./shared/define-config-DwTNhgWB.mjs";
|
|
2
2
|
//#region ../../../node_modules/.pnpm/@rolldown+pluginutils@1.0.1/node_modules/@rolldown/pluginutils/dist/filter/index.d.mts
|
|
3
3
|
//#region src/filter/composable-filters.d.ts
|
|
4
4
|
type StringOrRegExp = string | RegExp;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-xuHO4mAy.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { $t as ModuleInfo, A as ResolvedId, At as ChunkFileNamesFunction, B as ExistingRawSourceMap, Bt as ModuleFormat, C as ParallelPluginHooks, Ct as RolldownBuild, D as ResolveFileUrlArgs, Dt as AdvancedChunksGroup, E as PluginMeta, Et as AddonFunction, Ft as CommentsOptions, G as EmittedAsset, H as OutputBundle, Ht as PreRenderedAsset, It as GeneratedCodeOptions, J as EmittedPrebuiltChunk, Jt as RenderedChunk, K as EmittedChunk, Kt as OutputAsset, L as RUNTIME_MODULE_ID, Lt as GeneratedCodePreset, M as RolldownPluginOption, Mt as CodeSplittingGroup, N as SourceDescription, Nt as CodeSplittingNameFunction, O as ResolveIdExtraOptions, Ot as AdvancedChunksOptions, P as TransformResult, Pt as CodeSplittingOptions, Q as DefineParallelPluginResult, R as VERSION, Rt as GlobalsFunction, S as ObjectHook, St as rolldown, T as Plugin, Tt as build, U as TreeshakingOptions, V as SourceMapInput, Vt as OutputOptions, W as TransformPluginContext, Wt as PartialNull, X as PluginContext, Xt as RolldownOutput, Y as GetModuleInfo, Yt as RenderedModule, Z as PluginContextResolveOptions, Zt as SourceMap, _ as HookFilterExtension, _t as watch, a as ChunkOptimizationOptions, at as BufferEncoding, b as ModuleOptions, bt as RolldownWatcherWatcherEventMap, c as InputOption, ct as RolldownFsModule, d as OptimizationOptions, dt as NormalizedInputOptions, en as SourcemapIgnoreListOption, et as MinimalPluginContext, f as WatcherFileWatcherOptions, ft as TransformOptions, g as FunctionPluginHooks, gt as RolldownMagicString, h as CustomPluginOptions, ht as WarningHandlerWithDefault, i as RolldownOptions, it as ModuleTypeFilter, j as RolldownPlugin, jt as ChunkingContext, k as ResolveIdResult, kt as BuiltinModuleTag, l as InputOptions, lt as InternalModuleFormat, m as AsyncPluginHooks, mt as LoggingFunction, n as RolldownOptionsFunction, nt as GeneralHookFilter, o as ExternalOption, ot as RolldownDirectoryEntry, p as WatcherOptions, pt as ChecksOptions, q as EmittedFile, qt as OutputChunk, r as defineConfig, rt as HookFilter, s as ExternalOptionFunction, st as RolldownFileStats, t as ConfigExport, tt as PluginContextMeta, u as ModuleTypes, ut as NormalizedOutputOptions, v as ImportKind, vt as RolldownWatcher, w as PartialResolvedId, wt as BuildOptions, x as ModuleType, xt as WatchOptions, y as LoadResult, yt as RolldownWatcherEvent, z as BundleError, zt as MinifyOptions } from "./shared/define-config-
|
|
2
|
+
import { V as PreRenderedChunk } from "./shared/binding-Bvw14S3g.mjs";
|
|
3
|
+
import { $t as ModuleInfo, A as ResolvedId, At as ChunkFileNamesFunction, B as ExistingRawSourceMap, Bt as ModuleFormat, C as ParallelPluginHooks, Ct as RolldownBuild, D as ResolveFileUrlArgs, Dt as AdvancedChunksGroup, E as PluginMeta, Et as AddonFunction, Ft as CommentsOptions, G as EmittedAsset, H as OutputBundle, Ht as PreRenderedAsset, It as GeneratedCodeOptions, J as EmittedPrebuiltChunk, Jt as RenderedChunk, K as EmittedChunk, Kt as OutputAsset, L as RUNTIME_MODULE_ID, Lt as GeneratedCodePreset, M as RolldownPluginOption, Mt as CodeSplittingGroup, N as SourceDescription, Nt as CodeSplittingNameFunction, O as ResolveIdExtraOptions, Ot as AdvancedChunksOptions, P as TransformResult, Pt as CodeSplittingOptions, Q as DefineParallelPluginResult, R as VERSION, Rt as GlobalsFunction, S as ObjectHook, St as rolldown, T as Plugin, Tt as build, U as TreeshakingOptions, V as SourceMapInput, Vt as OutputOptions, W as TransformPluginContext, Wt as PartialNull, X as PluginContext, Xt as RolldownOutput, Y as GetModuleInfo, Yt as RenderedModule, Z as PluginContextResolveOptions, Zt as SourceMap, _ as HookFilterExtension, _t as watch, a as ChunkOptimizationOptions, at as BufferEncoding, b as ModuleOptions, bt as RolldownWatcherWatcherEventMap, c as InputOption, ct as RolldownFsModule, d as OptimizationOptions, dt as NormalizedInputOptions, en as SourcemapIgnoreListOption, et as MinimalPluginContext, f as WatcherFileWatcherOptions, ft as TransformOptions, g as FunctionPluginHooks, gt as RolldownMagicString, h as CustomPluginOptions, ht as WarningHandlerWithDefault, i as RolldownOptions, it as ModuleTypeFilter, j as RolldownPlugin, jt as ChunkingContext, k as ResolveIdResult, kt as BuiltinModuleTag, l as InputOptions, lt as InternalModuleFormat, m as AsyncPluginHooks, mt as LoggingFunction, n as RolldownOptionsFunction, nt as GeneralHookFilter, o as ExternalOption, ot as RolldownDirectoryEntry, p as WatcherOptions, pt as ChecksOptions, q as EmittedFile, qt as OutputChunk, r as defineConfig, rt as HookFilter, s as ExternalOptionFunction, st as RolldownFileStats, t as ConfigExport, tt as PluginContextMeta, u as ModuleTypes, ut as NormalizedOutputOptions, v as ImportKind, vt as RolldownWatcher, w as PartialResolvedId, wt as BuildOptions, x as ModuleType, xt as WatchOptions, y as LoadResult, yt as RolldownWatcherEvent, z as BundleError, zt as MinifyOptions } from "./shared/define-config-DwTNhgWB.mjs";
|
|
4
4
|
export { type AddonFunction, type AdvancedChunksGroup, type AdvancedChunksOptions, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, type BuiltinModuleTag, type BundleError, type ChecksOptions, type ChunkFileNamesFunction, type ChunkOptimizationOptions, type ChunkingContext, type CodeSplittingGroup, type CodeSplittingNameFunction, type CodeSplittingOptions, type CommentsOptions, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedChunk, type EmittedFile, type EmittedPrebuiltChunk, type ExistingRawSourceMap, type ExternalOption, type ExternalOptionFunction, type FunctionPluginHooks, type GeneralHookFilter, type GeneratedCodeOptions, type GeneratedCodePreset, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PluginContextResolveOptions, type PluginMeta, type PreRenderedAsset, type PreRenderedChunk, RUNTIME_MODULE_ID, type RenderedChunk, type RenderedModule, type ResolveFileUrlArgs, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownError, type RolldownError as RollupError, type RolldownFileStats, type RolldownFsModule, type RolldownLog, type RolldownLog as RollupLog, type RolldownLogWithString, type RolldownLogWithString as RollupLogWithString, RolldownMagicString, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RolldownWatcherWatcherEventMap, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformOptions, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherFileWatcherOptions, type WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/rolldown/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
3
|
-
import { T as VERSION, s as RolldownMagicString } from "./shared/bindingify-input-options-
|
|
4
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-C__LJDBG.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-DPvOlccK.mjs";
|
|
3
|
+
import { T as VERSION, s as RolldownMagicString } from "./shared/bindingify-input-options-V9YvAjrr.mjs";
|
|
4
|
+
import { t as rolldown } from "./shared/rolldown-Bblizyw1.mjs";
|
|
5
5
|
import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
|
|
6
6
|
import { isMainThread } from "node:worker_threads";
|
|
7
7
|
//#region src/setup.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { c as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-C__LJDBG.mjs";
|
|
2
|
+
import { c as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-V9YvAjrr.mjs";
|
|
3
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
4
4
|
//#region src/parallel-plugin-worker.ts
|
|
5
5
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Plugin, Ut as MaybePromise } from "./shared/define-config-
|
|
1
|
+
import { T as Plugin, Ut as MaybePromise } from "./shared/define-config-DwTNhgWB.mjs";
|
|
2
2
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
3
3
|
type ParallelPluginImplementation = Plugin;
|
|
4
4
|
type Context = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as ParserOptions$1, z as ParseResult$1 } from "./shared/binding-Bvw14S3g.mjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
//#region src/parse-ast-index.d.ts
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as logParseError, d as getCodeFrame, n as error, t as augmentCodeLocation, u as locate } from "./shared/logs-DmYCAKcW.mjs";
|
|
2
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
+
import { n as parseSync, t as parse } from "./shared/parse-rvxTD36n.mjs";
|
|
3
3
|
//#region src/parse-ast-index.ts
|
|
4
4
|
function wrap(result, filename, sourceText) {
|
|
5
5
|
if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { I as BuiltinPlugin } from "./shared/define-config-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { g as BindingReplacePluginConfig } from "./shared/binding-Bvw14S3g.mjs";
|
|
2
|
+
import { I as BuiltinPlugin } from "./shared/define-config-DwTNhgWB.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-CRumnw21.mjs";
|
|
4
4
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Replaces targeted strings in files while bundling.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-
|
|
2
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-CFtim40S.mjs";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-DklcHr18.mjs";
|
|
3
3
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
4
4
|
/**
|
|
5
5
|
* Replaces targeted strings in files while bundling.
|
|
@@ -147,11 +147,48 @@ interface MangleOptionsKeepNames {
|
|
|
147
147
|
*/
|
|
148
148
|
class: boolean;
|
|
149
149
|
}
|
|
150
|
+
interface ManglePropertiesOptions {
|
|
151
|
+
/**
|
|
152
|
+
* JavaScript `RegExp` selecting property names to mangle. The source and flags are compiled
|
|
153
|
+
* with Rust's regex engine. Flags `i`, `m`, `s`, and `u` are supported.
|
|
154
|
+
*/
|
|
155
|
+
include: RegExp;
|
|
156
|
+
/** JavaScript `RegExp` excluding property names selected by `include`. */
|
|
157
|
+
exclude?: RegExp;
|
|
158
|
+
/** Exact names that are neither mangled nor emitted as automatic output names. */
|
|
159
|
+
reserved?: Array<string>;
|
|
160
|
+
/**
|
|
161
|
+
* Mangle quoted property occurrences in addition to unquoted occurrences.
|
|
162
|
+
*
|
|
163
|
+
* @default false
|
|
164
|
+
*/
|
|
165
|
+
quoted?: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* Generate readable `_$name$_`-style output names.
|
|
168
|
+
*
|
|
169
|
+
* @default false
|
|
170
|
+
*/
|
|
171
|
+
debug?: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* Stable mappings from original names to output names. `false` reserves an original name.
|
|
174
|
+
* Entries that do not match `include`, or that match `exclude`, remain inert but are
|
|
175
|
+
* preserved in the returned `mangleCache`. String targets must be `IdentifierName` values
|
|
176
|
+
* other than `__proto__`, `constructor`, or `prototype`. The original name `__proto__` is
|
|
177
|
+
* always reserved and cannot be used as a cache key.
|
|
178
|
+
*/
|
|
179
|
+
cache?: Record<string, string | false>;
|
|
180
|
+
}
|
|
150
181
|
interface MinifyOptions {
|
|
151
182
|
/** Use when minifying an ES module. */
|
|
152
183
|
module?: boolean;
|
|
153
184
|
compress?: boolean | CompressOptions;
|
|
154
185
|
mangle?: boolean | MangleOptions;
|
|
186
|
+
/**
|
|
187
|
+
* Mangle matching property names independently of identifier mangling. Properties owned by
|
|
188
|
+
* unminified code, imported module namespaces, globals, or host APIs must be excluded or
|
|
189
|
+
* reserved.
|
|
190
|
+
*/
|
|
191
|
+
mangleProps?: ManglePropertiesOptions;
|
|
155
192
|
codegen?: boolean | CodegenOptions;
|
|
156
193
|
sourcemap?: boolean;
|
|
157
194
|
}
|
|
@@ -164,6 +201,11 @@ interface MinifyResult {
|
|
|
164
201
|
* Only populated when `codegen.legalComments` is `"linked"` or `"external"`.
|
|
165
202
|
*/
|
|
166
203
|
legalComments: Array<string>;
|
|
204
|
+
/**
|
|
205
|
+
* Updated property-name cache sorted by original name. Present when `mangleProps` ran on a
|
|
206
|
+
* parse without errors.
|
|
207
|
+
*/
|
|
208
|
+
mangleCache?: Record<string, string | false>;
|
|
167
209
|
}
|
|
168
210
|
interface TreeShakeOptions {
|
|
169
211
|
/**
|
|
@@ -1737,6 +1779,21 @@ interface BindingModules {
|
|
|
1737
1779
|
values: Array<BindingRenderedModule>;
|
|
1738
1780
|
keys: Array<string>;
|
|
1739
1781
|
}
|
|
1782
|
+
/**
|
|
1783
|
+
* Counters of the Rust-side tracking allocator. V8 never allocates through
|
|
1784
|
+
* the Rust global allocator, so these numbers exclude the JS heap and GC
|
|
1785
|
+
* noise completely, unlike `process.memoryUsage()`.
|
|
1786
|
+
*/
|
|
1787
|
+
interface BindingNativeMemoryStats {
|
|
1788
|
+
/** Bytes currently allocated and not yet freed, since process start. */
|
|
1789
|
+
liveBytes: number;
|
|
1790
|
+
/** Highest `live_bytes` seen since process start or the last reset. */
|
|
1791
|
+
peakBytes: number;
|
|
1792
|
+
/** Successful `alloc` calls since the last reset. */
|
|
1793
|
+
allocCount: number;
|
|
1794
|
+
/** Successful `realloc` calls since the last reset. */
|
|
1795
|
+
reallocCount: number;
|
|
1796
|
+
}
|
|
1740
1797
|
interface BindingOverwriteOptions {
|
|
1741
1798
|
contentOnly?: boolean;
|
|
1742
1799
|
/** Stores the replaced content in the generated sourcemap's `names` field. */
|
|
@@ -1948,6 +2005,12 @@ interface ExternalMemoryStatus {
|
|
|
1948
2005
|
freed: boolean;
|
|
1949
2006
|
reason?: string;
|
|
1950
2007
|
}
|
|
2008
|
+
/**
|
|
2009
|
+
* Returns the Rust-side allocator counters, or `None` when this binding was
|
|
2010
|
+
* built without the `tracking_allocator` cargo feature (the default —
|
|
2011
|
+
* tracking costs a few atomic operations per allocation).
|
|
2012
|
+
*/
|
|
2013
|
+
declare function getNativeMemoryStats(): BindingNativeMemoryStats | null;
|
|
1951
2014
|
/** Error emitted from native side, it only contains kind and message, no stack trace. */
|
|
1952
2015
|
interface NativeError {
|
|
1953
2016
|
kind: string;
|
|
@@ -1975,8 +2038,14 @@ interface PreRenderedChunk {
|
|
|
1975
2038
|
/** Exported variable names from this chunk. */
|
|
1976
2039
|
exports: Array<string>;
|
|
1977
2040
|
}
|
|
2041
|
+
/**
|
|
2042
|
+
* Starts a new measuring window: the peak restarts from the current live
|
|
2043
|
+
* bytes and the counts restart from zero. No-op when the binding was built
|
|
2044
|
+
* without the `tracking_allocator` cargo feature.
|
|
2045
|
+
*/
|
|
2046
|
+
declare function resetNativeMemoryStats(): void;
|
|
1978
2047
|
interface ViteImportGlobMeta {
|
|
1979
2048
|
isSubImportsPattern?: boolean;
|
|
1980
2049
|
}
|
|
1981
2050
|
//#endregion
|
|
1982
|
-
export {
|
|
2051
|
+
export { BindingViteTransformPluginConfig as A, ParserOptions as B, BindingViteImportGlobPluginConfig as C, BindingViteReactRefreshWrapperPluginConfig as D, BindingViteModulePreloadPolyfillPluginConfig as E, JsxOptions as F, TransformOptions as G, ResolveResult as H, MinifyOptions as I, isolatedDeclaration as J, TsconfigCache as K, MinifyResult as L, ExternalMemoryStatus as M, IsolatedDeclarationsOptions as N, BindingViteReporterPluginConfig as O, IsolatedDeclarationsResult as P, NapiResolveOptions as R, BindingViteDynamicImportVarsPluginConfig as S, BindingViteManifestPluginConfig as T, ResolverFactory as U, PreRenderedChunk as V, SourceMap as W, moduleRunnerTransform as X, isolatedDeclarationSync as Y, resetNativeMemoryStats as Z, BindingTransformHookExtraArgs as _, BindingEnhancedTransformOptions as a, BindingTsconfigResult as b, BindingHookResolveIdExtraArgs as c, BindingMagicString as d, BindingNativeMemoryStats as f, BindingReplacePluginConfig as g, BindingRenderedChunk as h, BindingClientHmrUpdate as i, BindingWatcherBundler as j, BindingViteResolvePluginConfig as k, BindingIsolatedDeclarationPluginConfig as l, BindingRebuildStrategy as m, BindingBundleAnalyzerPluginConfig as n, BindingEnhancedTransformResult as o, BindingPluginContextResolveOptions as p, getNativeMemoryStats as q, BindingBundleState as r, BindingEsmExternalRequirePluginConfig as s, BindingBuiltinPluginName as t, BindingLazyChunkOutput as u, BindingTsconfigCompilerOptions as v, BindingViteJsonPluginConfig as w, BindingViteBuildImportAnalysisPluginConfig as x, BindingTsconfigRawOptions as y, ParseResult as z };
|